What is the difference between Abstract Classes and Interfaces? Download E-book

Gourav | Views: 1000

Difference between Abstract Classes and Interfaces This question is quite related with OOP's and shows your understanding of OOP's. So Abstract Classes versus Interfaces is an important interview question and asked in most of interviews. So this e-book has a brief explanation about what polymorphism exactly is and how it translates into C# abstract classes or interfaces, and when or why you’ll want to choose one or the other. Download free ebook and get the difference between Abstract Classes and Interfaces with examples.


Content overview of e-book:

Why are you talking about Polymorphism, and what exactly is that?

Polymorphism in C# (and other languages…)

A class with methods or properties that don’t have an implementation? How can we use it?

Abstract classes, and interfaces?

C-Sharp particularities

Conclusion and summary

Polymorphism
(Multiple implementations of a shared set of methods)

Abstraction
(Definition of methods with no implementation)

Partial polymorphism
(Can provide some code base, which implementers inherit)

Multiple inheritance
(Same class implements multiple abstractions)

Metaclass polymorphism
(Multiple implementations of static methods or properties)



Tags:  OOPS Interview  C# interview  .Net Interview

 
Register or Login to Post Your Comment/Opinion