Skip to content

Instantly share code, notes, and snippets.

@javierguerrero
Created January 17, 2012 02:35
Show Gist options
  • Save javierguerrero/1624210 to your computer and use it in GitHub Desktop.
Save javierguerrero/1624210 to your computer and use it in GitHub Desktop.
ejemplo clase abstracta
public abstract class Vehiculo
{
public abstract void Encender();
public abstract void Mover();
public abstract void Parar();
public abstract void Apagar();
}
public class Carro : Vehiculo
{
public override void Encender()
{
}
public override void Mover()
{
}
public override void Parar()
{
}
public override void Apagar()
{
}
}
public class Barco : Vehiculo
{
public override void Encender()
{
}
public override void Mover()
{
}
public override void Parar()
{
}
public override void Apagar()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment