What is the main purpose of using abstract classes in object-oriented programming?
Correct: A
Abstract classes are designed to prevent direct instantiation. They serve as blueprints for other classes, defining a common interface and potentially providing some shared implementation. The primary goal is to enforce a specific structure and behavior in derived classes. This helps in achieving polymorphism and code reusability. Instantiation prevention is achieved using abstract methods, marked as abstract and only implemented in inheriting non-abstract classes.