DEV Community

Discussion on: Java Inheritance Puzzle

Collapse
 
mandraketech profile image
Navneet Karnani

"1". Because, in Java, the actual object's implementation is used, and not the typecast.