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
For JVM it is not that obvious that obj is Dog, so you have to be explicit with the cast.