App Logo

No.1 PSC Learning App

1M+ Downloads
What is an abstract class in OOP?

AA class with no methods

BA class that cannot be instantiated

CA class that can only have private members

DMore than one of the above

Answer:

B. A class that cannot be instantiated

Read Explanation:

  • An abstract class in object-oriented programming (OOP) is a class that cannot be instantiated on its own and is meant to be subclassed by other classes.
  • It may contain abstract methods, which are methods without a body, and concrete methods with implementations.
  • Subclasses inheriting from an abstract class must provide implementations for the abstract methods, making it a way to enforce a common interface among multiple classes.

Related Questions:

The system program that sets up an executable program in main memory for execution is:
What is another name for functional language?
..... is the process of carrying out commands .
The visual effects that occur when you move from one slide to the next during a presentation is :
Two main measures for the efficiency of an algorithm are: