using System;public class MyClass{ public void SomeMethod(int firstParam, float secondParam) { Console.WriteLine(" Here are the Parameters received:{0},{1}" firstParam, secondParam); }}public class Tester{ static void Main () { int howManyPeople = 5; float pi = 3.14f; MyClass mc = new MyClass( ); mc.SomeMethod(howManyPeople, pi); }}
int edad = 10;float altura = 50.2f;float peso = 33.5f;Perro ed = new Perro();ed.MetodoEdad(edad);Perro al = new Perro();al.MetodoAltura(altura);Perro pe = new Perro();pe.MetodoPeso(peso);