explain method overridding method overloding with examples?
Answer Posted / manoj jain
overriding and overloading both are type polymorphism.
overloading:-more then one functions or constructors have
same name but different signature is called overloading.
this is also called compile time polymorphism or static
polymorphism.
overriding:-method in child class has same name as in
parent class(function name and signature will be same in
parent and child class)that is called overriding.
child class method hides parent class method it is also
called bynamic binding or runtime polymprphism
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the role of action class in struts?
What are pull and push mvc architecture and which architecture does struts2 follow?
What is the purpose of action-mappings tag in struct-config.xml?
What is the difference between empty default namespace and root namespace?
What is the use of token interceptor in Struts2?
How is declarative handling of exceptions done in struts ?
How to explain Software Bank Loan descriptions
What is the purpose of @validations annotation?
What is the purpose of struts.properties in struct2?
What is the purpose of @emailvalidator?
Explain the complete struts validator framework.
What is the front controller in struts2?
What is the purpose of @key annotation annotation?
How can we group related actions in one group in Struts?
What is the flow of requests in struts based applications?