I have a question about overriding the equals method in Java. In my book, I have the following example:
equals
public class Dog{ private String na
Because as method parameter obj is Instance of Object class. So in the method body you need to cast obj back to the Dog type.
obj
Object
Dog