subject

For this assignment you will create several small classes to demonstrate inheritance. you will need to perform the following steps: 1. create a class that contains data and methods for a ship. call this class ship followed by your initials for your first and last name. (for example: if your name is schinnel small, the name of your class should be shipss.) • the ship class should contain the following data: o name of the ship o year the ship was built § use the protected modifier for both data members • the ship class should contain the following methods: o a constructor that sets the name of the ship and the year that it was built o a tostring method to display the name and year

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
Drums installed, you would apply clicks of the parking brake to obtain a slight drag on both rear wheels
Answers: 1
You know the right answer?
For this assignment you will create several small classes to demonstrate inheritance. you will need...
Questions
question
Mathematics, 19.11.2020 05:40
question
Mathematics, 19.11.2020 05:40
question
Mathematics, 19.11.2020 05:40
question
Mathematics, 19.11.2020 05:40
question
Mathematics, 19.11.2020 05:40