Question
Easy

If a class contains at least one pure virtual function, it is called as _ class.

1
Compiled
2
Abstract
3
Interpreted
4
Interface
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: OOP Concepts
Correct Answer
Option B
Explanation

The correct option is (2): A class in an Object-Oriented Programming language like C++ that declares at least one pure virtual function is officially known as an Abstract Class or Abstract Base Class (ABC). A pure virtual function is designated by setting its declaration equal to zero (e.g., virtual void functionName() = 0;). The fundamental consequence of having a pure virtual function is that the class cannot be directly instantiated,…Read More