OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 48
In C++, polymorphism requires:
A
Inheritance only
B
Virtual functions only
C
References only
D
Inheritance, Virtual functions and references
Question 48 Explanation: 
→ Polymorphism means “many forms”, and it occurs when we have many classes that are related to each other by inheritance.
→ ​ In C++, polymorphism requires inheritance, virtual functions and references
Correct Answer: D
Question 48 Explanation: 
→ Polymorphism means “many forms”, and it occurs when we have many classes that are related to each other by inheritance.
→ ​ In C++, polymorphism requires inheritance, virtual functions and references

Leave a Reply

Your email address will not be published. Required fields are marked *