Discussion Locked

Late Bindin in Java

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How to do late binding in Java, since Java doesn't hava pointers and also doesn't have something that is simillar to Virtual in C++.

3 replies

by vinodhl

Late binding or ploymorohysm in Java is achieved through the use of interfaces.The use of virtual keyword is not necessary in Java because Java doesn't allow multiple inheritance of classes.It allows multi level inheritance and multiplr inheritanceof interfaces only

This discussion is closed to new replies.