Play around with inheritance and overriding methods.
This is an individual assignment, though collaboration (not
solution sharing) is allowed.
You will build a program that implements this hierarchy:
Create a project in BlueJ and paste in this Driver. Don't change it.
Create the other classes needed to replicate the hierarchy and
produce this output.
There are a couple rules:
You cannot have any constructors beyond the ones I call in
You may have at most one "protected" instance variable.
You can only have one method in the whole project called
setName(), which means the setName() method only need to be created once and you are allowed to create other methods to make the Driver compile.
By Monday afternoon at 6:00 pm, submit all the appropriate .java
files into the appropriate D2L dropbox folder. DO NOT SUBMIT
Grading - 10 points
5 points - Output is the same as the sample output.
2 points - There is only one setName() method.
1 points - There is only one non-constructor method in the Dog
1 points - Method overriding is used where appropriate.
1 points - Good programming principles are followed (comments,
minimal unnecessary code,...).