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 does string [] args mean?
How many tetrahedral voids are there in bcc?
What are keyboard events?
What is a bufferedreader?
What do you mean by constant time complexity?
What is a lightweight component?
Explain about class in java?
Explain about strings in java?
Can we write any code after throw statement?
Why hashmap is used in java?
What is the difference between static and non-static variables in java programming?
What is the difference between actual and formal parameters?
Differentiate between overriding and overloading cases?
What type of language is java?
What is the generic function?