get help with homework

This assignment shall guide you through the important concepts of inheritance in object-oriented programming. To achieve this goal, write a java program implementing the following:

  1. Create a superclass having the following components:
    1. Three private attributes having different data types.
    2. A Constructor with three parameters to initialize the objects.
    3. Two Set methods
    4. Two other methods of calculus or displaying.
  2. Create a subclass that inherits from the superclass with the following components:
    1. Attributes:
  • Inherent the previous attributes from the superclass.
  • Another new attribute specific for this subclass.
  • Set and Get methods for the new attribute.
  • A method for displaying some information about this subclass.
  1. Create a program class containing a main() method with the following behavior:
  • Create an object from each of the previous classes.
  • Display a description for each object.
Create a superclass having the following components: Three private attributes having different data types.
5 (100%) 2 vote[s]