Polymorphism allows a 70-271 single name to be reused for several related but different purposes. The purpose of polymorphism is to allow one name to be used for a general class. Depending on the type of data, a specific instance of the general case is executed.
The concept of polymorphism is wider. Polymorphism exists every time we use two functions that have the same 70-290 name, but differ in the implementation. They may also differ in their interface, e.g., by taking different arguments. In that case the choice of which function to make is via overload resolution, and is performed at compile time, so we refer to static polymorphism.
Dynamic polymorphism will 70-292 be covered deeply in the where we will address its use on redefining the method in the derived class.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment