C# Corner


About Interface

An Interface is blue print of classes with static constant and abstract methods which have no body. We can also defined interface as syntactical contract that all the classes inheriting the interface should follow. The Interface defines the which part of the syntactical contract and the deriving classes define how to create part of the syntactical contract. Interface used for define properties, methods, and events, which are the members of the interface and interfaces have only the declaration of the members. In interface our responsibility to define the members in derived class. Abstract classes to some extent serve the same purpose, however, they are mostly used when only few methods are to be declared by the base class and the deriving class implements the functionalities.

File APIs for .NET – 25% off Aspose.Total
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more! Use coupon code HOL2016PSB