✏️ Explanatory Question

What is the difference between method overloading and method overriding in C#?

👁 651 Views
📘 Detailed Answer
💡

Answer with Explanation

Method parameters must be different in method overloading whereas it must be same in method overriding.

Inheritance is not required in method overloading, it occurs within the same class. But inheritance is required in method overriding.