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
What is difference in between java class and bean?
What are the access modifiers in java?
Which is bigger float or double?
Can a class be defined inside an interface?
What are features of java?
What is a classloader in java?
How to restrict a member of a class from inheriting by its sub classes?
What is the advantage of OOP in java?
Why runnable interface is used in java?
What is the purpose of static methods and variables?
What is the synchronized method modifier?
Can an interface implement another interface?
Is a char always 1 byte?
What are static blocks and static initalizers in java ?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }