public static void Main()
Personaje Kitty = new Caballero("Caballero" , "Kitty", 120 , 80, " atacar con la espada", "alzar el escudo");
Personaje Manguito = new Arquero("Arquero", "Manguito", 80, 100, " tirar una flecha", "salir corriendose a toda velocidad");
Personaje Facu = new Mago("Mago" , "Facu", 60, 200, " tirar pescados magicos", "ignorando el ataque");
public Personaje (string clase ,string name, int hp, int mp, string skill , string dfnc) {
public void Presentacion() {
Console.WriteLine("el "+ this._clase + " " +this._name + " Tiene " + this._hp + " de vida" + " y posee " + this._mp + " de poder mágico" +" su habilidad especial es" + this._skill);
Console.WriteLine("el "+ this._clase + " " + this._name + " se defiende " + this._skill);
public class Caballero : Personaje {
public Caballero (string clase , string name, int hp, int mp, string skill,string dfnc ) : base(clase , name,hp, mp, skill ,dfnc) {
public class Arquero : Personaje {
public Arquero (string clase , string name, int hp, int mp, string skill, string dfnc) : base(clase ,name,hp, mp, skill , dfnc) {
public class Mago : Personaje {
public Mago (string clase, string name, int hp, int mp, string skill, string dfnc) : base(clase , name,hp, mp, skill, dfnc) {