Tuesday, March 3, 2015

Interfaces

Interface is used to attain 100% abstraction.
-- Interface contains only the definition and not the implementation.
-- interface by default attach variable (public static final) and for method it is (public and abstract)
-- interface can extends any number of interfaces and class can implement any number of interfaces.
-- The rule is it must override all the methods defined in the interface else it needs to be defined as abstract.


------

>>>Final
------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment