If a class contains at least one pure virtual function, it is called as ............. class.
यदि किसी क्लास में कम से कम एक प्योर वर्चुअल फंक्शन हो, तो उस क्लास को कहा जाता है :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. Abstractएब्सट्रैक्ट
Explanation
A class with at least one pure virtual function (virtual void f() = 0;) is an abstract class; it cannot be instantiated.
जिस क्लास में कम से कम एक प्योर वर्चुअल फंक्शन (virtual void f() = 0;) हो वह एब्स्ट्रैक्ट क्लास है; उसका ऑब्जेक्ट नहीं बनता।
More Programming Concepts & Python questions
- Tuples in Python are :
- In python elements of the list are written inside :
- Pictorial representation of an algorithm is called as :
- In Python dictionary key value pairs are separated by :
- In Python instance methods use ........... as first default parameter.
- Step by step description of how to arrive at a solution to a given problem is known as :