Question

Which of the following is an example of Polymorphism in Object-Oriented Programming?

A A base class object cannot access the methods of a derived class
B The ability of a function to accept objects of different types and perform operations
C A derived class can directly modify private attributes of the base class
D An object can only interact with its own type
E Data members of a class are always public
Practice Next

Hey! Ask a query