Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created February 23, 2014 22:06
Show Gist options
  • Save Fhernd/9178017 to your computer and use it in GitHub Desktop.
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#.
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