public class TarjetaEthernet {
public TarjetaEthernet(string CN, string TP, string SP) {
public TarjetaEthernet(int velocidad= 0, int precio= 0, int temperatura= 0) {
Temperatura= temperatura;
System.Console.WriteLine("-----------------------------------------------\n");
System.Console.WriteLine("Datos mienbros liberados");
System.Console.WriteLine("-----------------------------------------------\n");
public static void Main() {
TarjetaEthernet CNX = new TarjetaEthernet(" ISA, PCI, PCMCIA, USB, Inalambrica", " AUI, BCN, RJ45", " Full-Duplex" );
System.Console.WriteLine("-----------------------------------------------\n");
System.Console.WriteLine("Conexion: " + CNX.Conexion);
System.Console.WriteLine("Topologia: " + CNX.Topologia);
System.Console.WriteLine("Soporte: " + CNX.Soporte);
System.Console.WriteLine("-----------------------------------------------\n");
TarjetaEthernet IND = new TarjetaEthernet(10/100/1000, 300, -40/70 );
System.Console.WriteLine("-----------------------------------------------\n");
System.Console.WriteLine("Velocidad: " + IND.Velocidad +"Megabits por segundo");
System.Console.WriteLine("Precio: " + IND.Precio +"pesos");
System.Console.WriteLine("Temperatura: " + IND.Temperatura +"Celsius");
System.Console.WriteLine("-----------------------------------------------\n");