Creating Class Hierarchy (inheritance)

Part1) Create a Java class with two subclasses (children). Each class should have at least one attribute
and a method. Parent class should have attribute/method that is common to both children and children
should have attribute/method that is unique to what they represent. Write main method to demonstrate the
correct functionality of the code and to demonstrate that the children inherit from the parent class. Submit
your program as an attached .java file and PLEASE post a screen shot to show that you have been able to
successfully run that program.
Part2) Reply to another student’s post. Modify the student’s code by adding another child class with an
attribute and a method that is unique to that object. Write main method to demonstrate the correct
functionality of the additions. Submit a screen shot of the execution of the modified code.