Difference Between Method Overloading and Method
Difference Between Method Overloading and Method
1) Method Method
overloading is used overriding is
to increase the used to provide
readability of the the specific
program. implementation
of the method
that is already
provided by its
super class.
2) Method Method
overloading is overriding
performed within occurs in two
class. classes that
have IS-A
(inheritance)
relationship.
4) Method Method
overloading is the overriding is
example of the example of
compile time run time
polymorphism. polymorphism.
1. class OverloadingExample{
4. }
ADVERTISEMENT
1. class Animal{
2. void eat(){System.out.println("eating...");}
3. }
5. void eat()
{System.out.println("eating bread...");}
6. }
← Prev Next →
Feedback
Splunk SPSS
Swagger Transact-SQL
Tumblr ReactJS
Regex Reinforcement
Learning
R Programming RxJS
Keras
Preparation
Aptitude Reasoning
Company
Questions
Trending Technologies
AWS Tutorial
Artificial AWS
Intelligence
Hadoop ReactJS
Git Tutorial
Blockchain Git
DevOps Tutorial
B.Tech / MCA
DBMS tutorial
Computer Discrete
Organization Mathematics
Ethical Hacking
html tutorial
Automata Tutorial
C++ tutorial
C Programming C++
Java tutorial
Java .Net
Python Programs
Data Warehouse