paint-brush
Overloading Vs. Overriding in C#by@samwalpole
55,004 reads
55,004 reads

Overloading Vs. Overriding in C#

by Sam Walpole4mDecember 15th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

Method overloading and overriding are two common forms of polymorphism in C# that are often confused because of their similar sounding names. In this article, we show the difference between the two with some practical code examples. Overloading is the ability to have multiple methods within the same class with the same name, but with different parameters. Overriding is known as compile-time (or static) polymorphism because each of the different overloaded methods is resolved when the application is compiled. In C#, overloading is static and overriding is determined at compile time and static.

Company Mentioned

Mention Thumbnail
featured image - Overloading Vs. Overriding in C#
Sam Walpole HackerNoon profile picture
Sam Walpole

Sam Walpole

@samwalpole

Fullstack .NET and JavaScript web developer. Coding teacher and advocate

About @samwalpole
LEARN MORE ABOUT @SAMWALPOLE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sam Walpole HackerNoon profile picture
Sam Walpole@samwalpole
Fullstack .NET and JavaScript web developer. Coding teacher and advocate

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite