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
What is the gregoriancalendar class in java programming?
What is the importance of main method in Java?
What are advantages of exception handling in java?
What a static class can contains?
What is static import?
How do you include a string in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Enlist diffrent types of inheritance supported by java?
Is java hashset ordered?
What is a constructor overloading in java?
What are predicates in java 8?
explain what is transient variable in java?
What is the purpose of the return statement?
Which object oriented concept is achieved by using overloading and overriding?
What are the application of stack?