what is mean by overriding in which situation we wil use?
Answer Posted / shahbaz ali
According to J2ee Compleet reference java:
I Think the answer is that
Overriding means the : In inheritance If we Declare the
(Public of default) Method in the superclass Similarly we
declare the method with the same name ,Same type,same
number of parameters.but the Body of the method May
different When We Instansiate child class and access it
then child's method will called if u want to call super's
overriden method then use the [super()] method to access it
in child for this read [Java compleete reference's
Chapter#8] u will find reasonable answer
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between access specifiers and access modifiers in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is the purpose of object oriented programming?
How does remove work in java?
What is super?
Difference between string, stringbuffer and stringbuilder?
How much ram can a 64 bit processor theoretically?
What are the advantages of java over cpp?
Does java arraylist maintain insertion order?
Difference between == and .equals() ?
How do generics work in java?
Difference between final and effectively final ?
What are the three parts of a lambda expression? What is the type of lambda expression?
What was java originally called?
Do I need java on my computer?