Question: What is an abstract class in .NET?
- An abstract class provides a partial implementation for functionality and some abstract or virtual members that must be implemented by the inheriting entities. It can declare fields too.
- An abstract class allows developers to create new classes that reuse, extend, and modify the behavior defined in other classes.
- An abstract class is responsible for keeping track of what is actually executing and where each executing thread is.
- An abstract class declares a contract or behavior that implementing classes require. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented.
Answer: The correct answer of the above question is Option A:An abstract class provides a partial implementation for functionality and some abstract or virtual members that must be implemented by the inheriting entities. It can declare fields too.