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 stream and buffer?
Is there any sort function in java?
What is starvation?
Explain differences between checked and unchecked exceptions in java?
What is primitive array?
Write a program to check for a prime number in java?
Can we assign null to double in java?
Are constructors methods?
Difference between abstract and concrete class ?
What do bitwise operators do?
How many bits is a string in java?
Can you use this() and super() both in a constructor?
What is the difference between Java and C++?
How do you implement tree mirroring in java?
Difference between arraylist and vector.