Question

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

A A method that can take multiple forms, such as being overridden in a subclass.
B A class that inherits properties from another class
C A class that uses another class as a part of its definition
D A way to restrict access to certain class members
E A way of dividing a complex system into smaller components.
Practice Next

Hey! Ask a query