Thread: interfaces..
View Single Post
  #1 (permalink)  
Old 01-14-2008, 11:45 PM
sireesha sireesha is offline
Member
 
Join Date: Nov 2007
Posts: 50
sireesha is on a distinguished road
interfaces..
Hi all,
I saw this code in a book.
Code:
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.
Reply With Quote
Sponsored Links