Game Preview

Polymorphism in Java

  •  English    7     Public
    Demonstrate understanding of the concept of Polymorphism and apply it on a program code.
  •   Study   Slideshow
  • True or False: Polymorphism is when objects of different classes can respond to the same message.
    True
  •  10
  • True or False: Polymorphism is when one class inherits from another class.
    False
  •  10
  • Polymorphism supports _______________, which is several methods with the same name but different arguments.
    overloading
  •  10
  • What is required to use polymorphism?
    inheritance
  •  10
  • What is polymorphism in object-oriented programming?
    When a class implements one or more interfaces and may also extend a superclass.
  •  10
  • True or False: To override a superclass method in a subclass, the subclass method must use a different method name.
    False
  •  10
  • True or False: To override a superclass method in a subclass, the subclass method must use the same method name and the same parameter types..
    True
  •  10