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
Explain the importance of throwable class and its methods?
When to use runnable interface vs thread class in java?
Can we convert stringbuilder to string in java?
What is the use of java?
Discuss 2D arrays.
Why is a singleton bad?
What is blank final variable?
Can we override compareto method?
Explain method local inner classes ?
What is immutable state?
What is variable explain?
What are the types of methods in java?
What exactly is java?
What is null data type?
Can a java program have 2 main methods?