Ad Code

When to declare a class as abstract in c#


In C# when do u absolutely have to declare a class as abstract?

An abstract method is a method that is declared in a class, but not defined. In order to be instantiated, a subclass must provide the definition. An abstract class is any class that includes an abstract method. It is similar to Pure virtual in C++. If a class includes an abstract method, the class must be declared abstract, too.
Reactions

Post a Comment

0 Comments