Question

Which of the following best illustrates the concept of polymorphism in Object-Oriented Programming (OO

  • P ?
A A function with multiple definitions based on the number and type of arguments it accepts.
B A class inheriting properties and methods from a parent class.
C Combining multiple objects to form a complex object.
D Restricting access to certain parts of an object’s data.
E Establishing relationships between two objects based on association.
Practice Next

Hey! Ask a query