Concepts

Abstract Class in C# Explained

Abstract class provides a common definition of a base class that many derived classes can share.

The abstract keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class.

Tips:

  • An abstract class cannot be instantiated.
  • Derived classes of the abstract class must implement all abstract methods

 

Abstract class can be declared in C# using the keyword abstract as shown in the example below:

Tags: