Closed adamozh closed 3 years ago
Randomly testing, not sure why a.equals(b) would run the method taking in Animal instead of the one that takes in a Dog, like b.equals(b)
Closed, found explanation here : https://stackoverflow.com/questions/11625049/covariance-and-overloading-in-java
Description
Randomly testing, not sure why a.equals(b) would run the method taking in Animal instead of the one that takes in a Dog, like b.equals(b)
Screenshots (if any):