ISRO Computer Science (CSE) 2026 - Question 71

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2026

Topic: Programming in C++

What makes a C++ class an "Abstract Class"?

  • A. Having all member variables defined as private.
  • B. Containing at least one pure virtual function.
  • C. Inheriting from more than two parent classes.
  • D. By declaring the class using the Abstract keyword.

Answer: B. Containing at least one pure virtual function.

Explanation: In C++, an abstract class is structurally defined as a class that possesses at least one pure virtual function (a virtual function appended with `= 0`). Unlike Java or C#, C++ does not have a dedicated `abstract` class-level keyword.

| | All questions of ISRO Computer Science (CSE) 2026