Java - проект ( В программе IntelliJ Idea )
9 USDDesign a Ship class that has the following members:
a. A field for the name of the ship (a string).
b. A field for the year that the ship was built (a string).
c. A constructor and appropriate accessors and mutators.
d. A toString method that displays the ship's name and the year it was built.
Design a CruiseShip class that extends the Ship class. The CruiseShip class should have the following members:
a. A field for the maximum number of passengers (an int).
b. A constructor and appropriate accessors and mutators.
c. A toString method that overrides the toString method in the base class. The CruiseShip class's toString method should display only the ship's name and the maximum
number of passengers.
Design a CargoShip class that extends the Ship class. The CargoShip class should have the following members:
a. A field for the cargo capacity in tonnage (an int).
b. A constructor and appropriate accessors and mutators.
c. A toString method that overrides the toString method in the base class. The CargoShip class's toString method should display only the ship's name and the ship's cargo capacity.
Demonstrate the classes in a program that has a Ship array. Assign various Ship, CruiseShip, and CargoShip objects to the array elements. The program should then step through the array, calling each object's toString method.
Собственно это все, что нужно сделать. Нужно в программе IntelliJ IDEA.
По поводу цены можем договориться)
Client's review of cooperation with Vitalii Valchuk
Java - проект ( В программе IntelliJ Idea )The person is interested in helping you, very adequate and friendly.
![]()
Freelancer's review of cooperation with client
Java - проект ( В программе IntelliJ Idea )It is easy to get in touch, I recommend it!!The !
-
104 26 0 Hello to you.
I can do as simple as possible tonight and if necessary explain what to do.
###################################################
#60 Symbols
###################################################
-
2125 226 0 1 Hi, I will write the program according to the requirements in IntelliJ IDEA.
Current freelance projects in the category Java
Development of an Android application player for the online TV service
609 USD
We need an Android developer to create a native Android application for an online TV service. Two versions are planned: for mobile devices: smartphones and tablets; for Android TV / Android STB: set-top boxes. Estimated timeline: up to 3 months. Estimated budget: 150,000… Java, App Development for Android ∙ 24 days 13 hours back ∙ 31 proposals |