Inheritance allows the following in C++ program :
इनहेरिटेंस C++ प्रोग्राम में निम्नलिखित की अनुमति देता है :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. All options are correctसभी विकल्प सही हैं
Explanation
Inheritance gives reusability, class hierarchies and extensibility — all options.
इनहेरिटेंस से पुनःप्रयोज्यता, क्लास पदानुक्रम और विस्तारशीलता — सब मिलते हैं।
More Programming Concepts & Python questions
- A generic function can be created using the following :
- Consider the following C++ statements : int x; int& y = x; The statements y = 25; x = 2*x + 30; update the value of x and y as :
- Which symbol should be used to pass the object by reference in C++ ?
- What is meant by multiple inheritance ?
- Which of the following is the scope resolution operator in C++ language ?
- In C++, << operator used for shifting bits can also be used for :