Monday, 16 July 2012

Interface Theorem

INTERFACE : " It all started with you :-* " 

1. Interface cannot inherit abstract class. In other words, An interface can only inherit other interfaces.

2.  Interface can inherit multiple interfaces

3.  If you have two interfaces, the second one has inherited the first one, if you inherit the second one to any class then all the methods from the first interface will have to be declared too.  

 4. An interface member functions or variables cannot be declared with Access Modifiers.


5. If you have inherited an Interface, then you must declare all its method as Public when you are declaring.
If declared as "Protected", "Private", "Internal" or "Protected Internal", you will see an error.



No comments:

Post a Comment