Abstract Class Interview Questions

Below are the Abstract Class Interview Questions for beginners and experienced developers for Interview Preparation. What is the need for abstract classes? Abstract classes allow partial implementations of a methods in a class Which is mostly used for an extension the sub class. Where parent class has default implementation and class specific implementation can be done in the child class. Abstract class promotes code reusability … Continue reading Abstract Class Interview Questions

What is Abstract class in C#, when abstract class is used, can abstract class be used in multilevel inheritance

Abstract class

Before understanding the abstract class let’s understand the abstract methods. Abstract Method The abstract method is a method without implementation. i.e. Abstract method just has the declaration of the method, however, there is no implementation or body for a method. The implementation of a method is done in the derived class. The derived class must implement all the abstract methods to avoid compile-time errors. C# … Continue reading Abstract class