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 in between cpp and java? Can u explain in detail?
Is java free for commercial?
What is the console in java?
What are decalarations?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What is better- service oriented or batch oriented solutions?
How do you replace a string in java?
What is the difference between Array and Hash Table?
What is javac in java?
What are the differences between stringbuffer and stringbuilder?
What was java originally called?
What is the primary benefit of encapsulation?
What is a blocking method in Java?
What is an array length?
how to create multithreaded program? : Java thread