Question

What is the primary purpose of an abstract class?

A To create objects directly.
B To hide all implementation details from the user.
C To define static methods only.
D To provide a blueprint for other classes and cannot be instantiated itself.
E To allow multiple inheritance.
Practice Next

Hey! Ask a query