Question: ****Please read the following requirements and use java language w/ comments**** ****Can make this a multi part question if needed**** Project requires a base class,

****Please read the following requirements and use java language w/ comments****

****Can make this a multi part question if needed****

Project requires a base class, a derived subclass, and an interactive driver (class with a main) that allows the user to utilize and manipulate the classes created. You may select one super class from the following:

Superclass Example subclasses

  1. Ship class a) battleship, tugboat, icebreaker
  2. Person class b) manager, salaryworker, hourlyworker
  3. Aircraft class c) Learjet, cargoplane, fighter
  4. Vehicle class d) car, truck, tank
  5. Animal class e) dog, cat, bird
  1. Create the internals for the selected superclass. This class should hold the minimum following data items:
  • Appropriate properties (have at least 10 try to select those with differing types).
  • Constructors (have at least 4, ensure at least 2 have some error checking)
  • Gets/Sets (build at least 6 of each)
  • Utilities (A print at a minimum, you may add 1 or 2 more if desired think this one through)
  • [optional] You may create no more than 3 static methods, and 3 variables - if desired
  1. Extend your base class with an appropriate subclass of your choice. Similar to your homework, add appropriate functionality.
  • Add at least 2 additional data properties
  • Add at least 2 additional constructors, 2 gets, and 2 sets
  • Override the print utility to support your subclass specific items. You may (optionally) adjust, override, or overload any other appropriate methods.
  1. In a separate class with your main (the driver), create a program that accomplishes the following:
  • Your program should allow the creation and manipulation of an object of your subclass type.
  • The program should contain a menu allowing the user to load/change (constructors/sets), delete, interrogate (retrieve data from [gets]), and print your subclass object. Obviously, you would use the subclass member methods (constructors/sets/gets/utilities) to accomplish the above requirements. Dont have more than 10 options total
  • Your menu should also include a quit selection i.e. the program should loop to allow for multiple iterations. Place the program menu in a method (NON-member method, i.e. it will be in the driver class, NOT the super/sub class you created).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!