Skip to content

Instantly share code, notes, and snippets.

@muthu1809
Created May 28, 2024 04:25
Show Gist options
  • Save muthu1809/87201e5644c6e8e9b4fa8c5d85b84c63 to your computer and use it in GitHub Desktop.
Save muthu1809/87201e5644c6e8e9b4fa8c5d85b84c63 to your computer and use it in GitHub Desktop.
class OverloadingExample
{
static float add(float a,float b) // float type and two argument
{
return a+b;
}
static float add(float a,float b,float c) // float type and three argument
{
return a+b+c;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment