Created
February 23, 2014 22:06
-
-
Save Fhernd/9178017 to your computer and use it in GitHub Desktop.
Demostración de métodos sobrecargados con múltiples parámetros en C#.
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
using System; | |
namespace Articulos.Ch03 | |
{ | |
public class MultiplesParametrosSobrcarga | |
{ | |
public static void Metodo (int x, int y) | |
{ | |
Console.WriteLine ("Metodo(int x, int y)"); | |
} | |
public static void Metodo (int x, double y) | |
{ | |
Console.WriteLine ("Metodo(int x, double y)"); | |
} | |
public static void Metodo (double x, double y) | |
{ | |
Console.WriteLine ("Metodo(double x, int x)"); | |
} | |
public static void Main () | |
{ | |
Metodo (5, 10); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment