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

What do you mean by singleton class in java?

517


What is the basic concepts of OOPS?

693


What is adapter in java?

520


How many bits is a word?

569


How many decimal places is a double?

539






If try block is successfully executed, Then Is Finally block executed?

610


What loop means?

563


What do you mean by static variable?

578


Why do we need hashmap in java?

559


Why we override equals() method?

570


What is oop principle in java?

549


What is the implementation of destroy method in java. Is it native or java code?

488


State the merge-sort principle and its time complexity.

574


Is hashset ordered java?

590


What is implicit object in java?

549