Created
May 28, 2024 04:25
-
-
Save muthu1809/87201e5644c6e8e9b4fa8c5d85b84c63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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