explain method overridding method overloding with examples?
Answer Posted / senthamil kumaran
polymorphism can be divided into two tyes:-
Dynamic polymorphism or Run time polymorphism
Static polymorphism or Compile time polymorphism
Example for Static polymorphism
Method Overloading
Example for Dynamic polymorphism
Method Overriding
overloading: same method name but different argument list
is called as overloading
overriding:-same methodis redefined in the following
Derived classes with the same arugument list
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the major differences between html tags and strut specific html tags?
What is struts in java with example?
Which configuration file is used for storing jsp configuration information in struts?
What is the purpose of @conversionerrorfieldvalidator annotation?
Explain the difference between jakarta struts and apache struts?
Do you need an alignment after replacing struts?
What is the difference between requestaware and servletrequestaware interface?
What is the purpose of @typeconversion annotation annotation?
What is the difference between filters and interceptors ?
Why we use struts in java?
How the exceptions are handled in struts?
How to override the default error message that can come during file uploading process?
What do struts do?
How can we display validation errors on jsp page?
What is the default location of result pages and how can we change it?