What must a subclass method do in order to override a superclass method? Must use a different method name. ◎ Must use the same method name and the same parameter types. Must use a different method name and the same parameter types. Must use a different method name and different parameter types.
Added by Asunci-N B.
Close
Step 1
Step 1: To override a superclass method, a subclass method must have the same name and the same parameter types. Show more…
Show all steps
Your feedback will help us improve your experience
Manik Pulyani and 71 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
The method1 method in ClassB is an example of (A) method overloading. (B) method overriding. (C) polymorphism. (D) information hiding. (E) procedural abstraction.
Akash M.
A class has two constructors. This is an example of inheritance instantiation overloading overriding polymorphism
Luke H.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD