Hi all,
I saw this code in a book.
interface Lion extends Animal {}
Lion king = ...;
In the above code Lion is an interface which extends Animal interface.
But in the second line ,
Is King is the object of type Lion ?
Can we create Objects for interfaces ?
I am very confused about it.
Please tell me...
Thankq very much.