Key Points

P1 – C# doesn’t support multiple inheritance, however, multiple interface inheritance is allowed. Any class  or struct can inherit only one base class (abstract or user-defined) and multiple interfaces.

P2 – System.Object is the root base class and all other classes are by default derived from it if base class is not specified externally.

P3 – C# doesn’t allow abstract classes and interfaces to be instantiated. All members of interface are by default public.

P4 – If class inherit an interface then it should implement all the methods inside that interface otherwise compiler will through error. But in case of abstract classes if method is not marked abstract then inheriting class can skip the implementation of that method.


About Rajan
I am Rajan Garg working as a Senior Software Engineer in a company. I am working on the Microsoft technologies.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: