=> Interface is a contract that defines the signature of functionality. So if a class is implementing a interface is say's to the outer world that it provides specific behaviour.
Properties Of Interface :-
1. Supports multiple inheritance(Single Class can implement multiple interfaces).
2. Contains only incomplete method.
3. Can not Contains data members.
4.By Default interface members is public (We Can not set any access modifier into interface members).
5. Interface can not contain constructors.
0 comments:
Post a Comment