Super Classes in JAva

Job ID: 30808896

Budget: $10 – $30 USD

Write a super class representing an Animal class. The Animal class should have the following
attributes: color, age, and pet type. The Animal super class should have: 1) a default constructor,
2) a method that gets color, 3) a method that gets age, and 4) a method that gets the pet type.
Create two subclasses Pet and Dog respectively. The two subclasses inherit from the Animal class.
The two sub classes must get and print out: a) age, b) color, and c) pet type.


Assuming you will use the waterfall software process model. Document all the steps you
did in each stage - requirements gathering and so on. Be specific and to the point.
Draw a class-based UML diagram with UMLet software. If you use any diagraming tool
other than UMLet, copy and paste your diagram in a word document and save it as pdf.