Mohd Arif
What are abstract classes? What are the distinct characteristics of an abstract class ?
By Mohd Arif in .NET on Dec 01 2015
  • Mohd Arif
    Dec, 2015 1

    An abstract class is a class that cannot be instantiated and is always used as a base class. The following are the characteristics of an abstract class: You cannot instantiate an abstract class directly. This implies that you cannot create an object of the abstract class; it must be inherited. You can have abstract as well as non-abstract members in an abstract class. You must declare at least one abstract method in the abstract class. An abstract class is always public. An abstract class is declared using the abstract keyword.The basic purpose of an abstract class is to provide a common definition of the base class that multiple derived classes can share.

    • 1
  • Vishal Jadav
    Aug, 2016 8

    A class which is used to define characteristics. We can not create object of an abstract class.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS