Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Certification
»
Programmer Certification (SCJP/OCPJP)
Author
Can interface extends a super interface??
Hades Pan
Ranch Hand
Joined: Nov 25, 2001
Posts: 106
posted
Dec 01, 2001 07:47:00
0
EXP: public interface List extends Collection
kinnu jemmy
Greenhorn
Joined: Oct 08, 2001
Posts: 18
posted
Dec 01, 2001 08:20:00
0
yes.
eg.interface fruit{ void taste(); } interface apple extends fruit { void color(); }
in this eg. apple contain both the methods.
see JLS chapter 9 for more info.
kinnu
vishal avad
Ranch Hand
Joined: Nov 29, 2001
Posts: 45
posted
Dec 02, 2001 21:32:00
0
hi hades
an interface can only be extended by the interfaces and not by classes rest of the things r already explained in previous reply.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Can interface extends a super interface??
Similar Threads
does interface gets converted to abstractclass at compile time or runtime
Field Names to the GUI Client
SOAPElement interface.
extends interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter