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

1 Answer

0 votes

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.

Related questions

0 votes
asked Oct 22, 2020 in JAVA by sharadyadav1986
0 votes
asked May 25, 2020 in JAVA by Robindeniel
0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
0 votes
asked Oct 18, 2019 in C Sharp by Robin