What is the difference between Overloading and Overriding?

Random Post | #AskTheCode

When you have two methods of the same name but having different properties, the case is called Overloading. On the other hand, Overriding refers to a situation where two methods with the same name and properties occur, but the two occurring in a parent and child class respectively.


4 views

Recent Posts

See All

"Believe you can and you're halfway there"