Object-oriented programming (OOPs) Question:

Download Job Interview Questions and Answers PDF

What is Abstract Class?

OOP Interview Question
OOP Interview Question

Answer:

Abstract class is a class that can not be instantiated, it exists extensively for inheritance and it must be inherited. There are scenarios in which it is useful to define classes that is not intended to instantiate; because such classes normally are used as base-classes in inheritance hierarchies, we call such classes abstract classes.

Abstract classes cannot be used to instantiate objects; because abstract classes are incomplete, it may contain only definition of the properties or methods and derived classes that inherit this implements it's properties or methods.

Static, Value Types & interface doesn't support abstract modifiers. Static members cannot be abstract. Classes with abstract member must also be abstract.

Download OOP Interview Questions And Answers PDF

Previous QuestionNext Question
What is Polymorphisms?When to use Interface over abstract class?