Copyright

Polymorphism in C++ Programming: Definition & Example

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Which of the following best describes polymorphism?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 75,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime.
Already registered? Log in here for access

1. _____ refers to having the same function but with different parameters.

2. This technique allows you to have the same function in different classes, including the base or any derived classes.

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

This brief quiz and worksheet tests your ability to answer questions about polymorphism in C++, such as a technique that lets you have the same function in different classes. You can take the quiz at any time.

Quiz & Worksheet Goals

You'll be quizzed on the following:

  • Describing polymorphism
  • Creating the same function with different parameters
  • Having the same function in different classes
  • Correctly overloading a function
  • Creating a pointer to an address of a derived class instance

Skills Practiced

  • Interpreting information - verify that you can read information about polymorphism and interpret it correctly
  • Knowledge application - use your knowledge to answer a question about using a base class
  • Information recall - access the knowledge you've gained about overloading a function

Additional Learning

Continue learning about this topic with the lesson titled Polymorphism in C++ Programming: Definition & Example. Here are examples of the information you'll find in this lesson:

  • Why polymorphism is important
  • Sample code for a Container base (parent) class
  • What overriding is
Support