Which of the following statements describe the polymorphism in object-oriented programming?

All QuestionsCategory: Cpp LanguageWhich of the following statements describe the polymorphism in object-oriented programming?
Anonymous asked 3 years ago

Options:

  1. Polymorphism involves overriding superclass methods and adding specific functionality to them
  2. The program understands which version of a method is referred to based on the type of object being used
  3. Implementing a class-specific version of a superclass method involves renaming the method
  4. Polymorphism is the ability to use an object as if it were an object of its superclass while still using its overridden methods
  5. Inheritance and overloading form the basis of polymorphism

1 Answers
Anonymous answered 3 years ago

The correct answers are:

  1. Polymorphism involves overriding superclass methods and adding specific functionality to them
  2. The program understands which version of a method is referred to based on the type of object being used
  3. Polymorphism is the ability to use an object as if it were an object of its superclass while still using its overridden methods
  4.