What is Overriding and how can it be used?

Answer Posted / gopalramana

To define method in subclass having same method name as
method in superclass having same return type,same
parameters,then method in subclass should be override
method in superclass.

used in code repalcement.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many return statement are allowed in a function?

453


What is the difference between yielding and sleeping in java programming?

584


Can memory leak happen java?

594


Explain about the dynamic behavior of core java?

628


What are the differences between string and stringbuffer?

585






Difference between concurrent hashmap and hashtable and collections

561


What is a boolean in java?

575


What is one third plus one third as a fraction?

483


Why multiple inheritance is not supported by java?

509


What is vector capacity in java?

593


What do you mean by byte code?

504


What is a method in programming?

630


How to perform merge sort in java?

579


What is hashset in java?

524


What are the methods of object class ?

560