Простейший дизайн на Java
6 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 Vitalii Valchuk
Простейший дизайн на JavaThe work was done instantly ( literally) and very quality.
Freelancer's review of cooperation with Dmitry Kuznetsov
Простейший дизайн на Javaprovided full TZ, adequate requirements, easy to get in touch
-
1398 36 0 Hi, I’m a Java developer. I can help you to solve this task. I have big experience in creating web-apps and bots, so I can solve your task less than in an hour. I hope for our cooperation!
Hello, I am a Java developer. I will help you solve your task. I have great experience in creating web apps and bots on Java. Your task will not cause any difficulties at all. I will do it in less than an hour. I hope for cooperation!
-
2084 226 0 1 I have done this task more than once. One in one.
-
106 Hello to you.
I will be happy to help in the implementation of my task.
Hey, I can do it)
-
5164 210 0 Good day . I can help you solve this task.
Hello is. I can help you with this task.
Current freelance projects in the category Java
Development of an Android application player for the online TV service
608 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 ∙ 29 days 22 hours back ∙ 32 proposals |