0

We can call object class methods by using interface reference but Object doesn't inherit to interface. Why its possible?

In Java interface and implementation class

15th Sep 2019, 6:03 AM
Irshaa
Irshaa - avatar
2 Respuestas
0
I think it's bcz of implementation class methods will reflect to parent inheritance since implementation class should inherited from Object class .. So by using the interface reference we can call the objects class methods..
15th Sep 2019, 3:42 PM
Irshaa
Irshaa - avatar