Created
January 17, 2012 02:35
-
-
Save javierguerrero/1624210 to your computer and use it in GitHub Desktop.
ejemplo clase abstracta
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
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