Is it possible to use both overloading and overriding in the same method? Why?:
Added by Ashley R.
Step 1
Overloading refers to having multiple methods in the same class with the same name but different parameters, while overriding refers to having a method in a subclass with the same name and parameters as a method in its superclass. Show more…
Show all steps
Your feedback will help us improve your experience
Sarvesh Somasundaram and 78 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
Can two interfaces mutually extend each other? Why or why not?
The method1 method in ClassB is an example of (A) method overloading. (B) method overriding. (C) polymorphism. (D) information hiding. (E) procedural abstraction.
Is it possible for two different objects to have the same
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