Simply put, runtime polymorphism is the ability of C++ to determine the class of an object that belongs to a derived class. RP allows a designer to write a base class and derived classes and then create objects of the derived classes pointed to by pointers to the base class. RP will figure out what derived class the object belongs to. Why is this important? Because it allows the designer to write simpler code.
1 Expert Answer
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.