Java - проект ( В программе IntelliJ Idea )
8 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.
Client's review of cooperation with Sergey K.
Java - проект ( В программе IntelliJ Idea )It was performed in 2 hours. They answered, explained, made and showed.
Freelancer's review of cooperation with Medet Issayev
Java - проект ( В программе IntelliJ Idea )All norms, I recommend the customer.
-
954 112 0 Good day
Ready to fulfill this task.
Go to LS.
_________________________________________
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 |