Question

What is the primary benefit of polymorphism?

A To reduce memory consumption.
B To allow for more rigid and less flexible code.
C To write more generic and reusable code that can work with objects of different types.
D To prevent data from being modified.
E To enforce a strict hierarchy of classes.
Practice Next

Hey! Ask a query