|
-
November 26th, 2007, 04:51 AM
#1
Some help please
A subclass can inherit "interface" or "implementation" from a superclass. How do inheritance hierarchies designed for inheriting interface, differ from those designed for inheriting implementation (behavioral characteristics of a class)?
-
November 26th, 2007, 05:12 AM
#2
Re: Some help please
Hi pikkas, it is easy. Class can extend only one superclass, however it can implements several interfaces. Class inherits all superclasses interfaces, as well. Methods defined by interface have public access modifier. Inheriting of interface's implementation follows overriding rules.
Extending interfaces follows same rules as extending of class except interface can extend more than one interface. Note that, java class can extend only one class.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|