Cast to interface reference and the class refernece that implementing the interface.is it possible?
Slaxmi Raj
Ranch Hand
Joined: Apr 20, 2012
Posts: 40
posted
0
Can any one please explain the below statement with example(Not getting to my knowledge because i am the beginner).
A reference variable can be declared as a class type or an interface type. If
the variable is declared as an interface type, it can reference any object of any
class that implements the interface.