An abstract class refers that object cannot be instantiated using those class type, but it can initialize using it's derived classes.
An abstract class can have both abstract methods and non abstract methods. Abstract members does not require any implementation in the abstract class, but the it should be defined in inherited class.
Some Behaviors of Abstract Classes
An abstract class can have both abstract methods and non abstract methods. Abstract members does not require any implementation in the abstract class, but the it should be defined in inherited class.
Some Behaviors of Abstract Classes
- Abstract class cannot be a sealed class.
- An abstract method cannot be private.
- The access modifier of the abstract method should be same in both the abstract class and its derived class.
- An abstract method cannot have the modifier virtual. Because an abstract method is implicitly virtual.
- An abstract member cannot be static.