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 hash code collision?
What do you understand by casting in java language?
What is the ==?
How do you initialize an arraylist in java?
What are parameters in a method?
What is the purpose of file class?
How do you check if a character in a string is a digit or letter?
Explain about the interpreter in java?
Is string an object?
Convert Binary tree to linked list.
What is %02d?
What is java thread dump, how can we get java thread dump of a program?
What is assembly condition codes?
What restrictions are placed on method overloading?
What are the advantages of assembly language?