Difference between overloading and overriding
Overloading: - In overloading we can create the multiple methods having same name but different signature.
Overloaded methods can have same or different return type and access levels.
Overriding: - In overriding we change the behavior of base class method by putting override keyword in child class. We can hide the implementation of base class by putting new keyword in child class method.
0 comments:
Post a Comment