Answer Posted / preeti
in overloading methods can have the same name but must
have different parameter lists i.e signature
while in overriding if you declare a field in a subclass
with the same name as one in the superclass, the superclass
field can only be accessed using super or the superclasses
type
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is the important feature of inheritance?
What are the types of abstraction?
What is encapsulation with example?
What is variable example?
Where is pseudocode used?
What are the three main types of variables?
What is the difference between encapsulation and polymorphism?
How is class defined?
Can we have inheritance without polymorphism?
What is a null tree?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is the benefit of oop?
Why do we use class?
Which type does string inherit from?
#include