What is the exact use of an Abstract class? Is not possible to do the same things in an ordinary class as it is an an abstract class?
C# – Exact use of Abstract class
abstract-classc++
Related Question
- Python – Difference between abstract class and interface in Python
- When to use an interface instead of an abstract class and vice versa
- C# – When should I use a struct rather than a class in C#
- C# – Proper use of the IDisposable interface
- Interface vs Abstract Class (general OO)
- Objective-c – Creating an abstract class in Objective-C
- The difference between an interface and abstract class
- Java – When to use: Java 8+ interface default method, vs. abstract method
Best Solution
Use an abstract class to provide some concrete implementation but not allow instantiation. You can always instantiate an ordinary class which doesn't make sense if it can't stand alone. At the same time, an interface might not be enough if there's a concrete implementation that's identical in all implementing classes. An abstract class is just enough.