abcprep.com - your onestop GMAT, GRE, PMP hub
.NET FAQs Unleashed!
 
    



    


What is an interface? How to implement an interface?

An Interface is a collection of semantically related abstract members. An interface expresses through the members it defines, the behaviors that a class needs to support. An interface is defined using the keyword interface. The members defined in an interface contain only definition, no implementation. The members of an interface are all public by default, any other access specifier cannot be used.

An interface is implemented using implements keyword. A class may implement more than one keyword.

When a class inherits and implements at the same time, the inherited parent class name is written first, followed by the names of the interfaces to be implemented.

Click here to know more on Interfaces

OOPs  Class  Encapsulation  Inheritance  Class Member  Polymorphism  Property Event  Access Modifier  Overloading  Shared  Virtual  Overridable Overrides Mustoverride  Shadows  Constructor  Static Constructor  Serialization  Delegate  Abstract  Interface  Multiple Inheritance 








Know Your Breath, Know Your Life!!!