Add an equals method to this class that returns true if the current Dog and passed Dog have the same name. The code should print false twice then true twice.
Override the taste method from the Candy class in the Chocolate class to return tastes chocolately. It should print tastes sweet! and then tastes chocolately.
Add a call to Petβs brag method before printing anything in Dogβs brag method (hint: use super to call an overridden method). It should print I have the best pet! and then I have the best dog.
Finish the Teacher constructor. Use super to use the Person construtor to set the fields inherited from Person. It should print Destini 20 followed by Erica 55 Masters in Teaching.
Add public getter and setter methods to the Store class so its variables can be accessed by other classes. It should print the storeβs name and address and then change both and print the new values.
Override the compareTo method so that it returns a positive number if the current Person is older than the passed other and a negative number if they are younger. If their age is the same then return the compareTo result on the names.