What is Overriding and how can it be used?

Answer Posted / arvind wagh

Overriding means same name methods in different classes

When the method is invoked for an object
of the class, it is the new definition of the method that is
called, and not the method definition from super class

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the limitations of procedural programming approach?

524


How to reverse a string in java?

518


What are the different types of data structures in java?

489


What is the basic of java?

566


How do you identify independent and dependent variables?

500






What is an immutable class? How to create an immutable class?

536


What is the difference between I ++ and ++ I in java?

504


Do I need java on my computer?

524


What is mnemonic in assembly language?

549


Difference between abstract and concrete class ?

579


What are the advantages of compiled language?

574


What is the difference between static class and normal class?

488


What is rule of accessibility in java?

540


What is one third plus one third as a fraction?

483


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

521