Diseño de clases de Animales

Programación Orientada a Objetos (Tower defense - kingdom rush)

Moderator: julianmartinez16

User avatar
Anjaerza
Posts: 15
Joined: Thu Jul 26, 2018 6:24 am

Re: Diseño de clases de Animales

Post by Anjaerza » Tue Aug 14, 2018 7:24 am

Jagüar

Image

Code: Select all

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace POO
{
    class Jaguar
    {
        private int patas_sanas;
        private string nombre;
        private int num_manchas;
        private char sexo;
        private float peso;


        public void Comer(string comida)
        {
        }
        public void Atacar(string presa)
        {

        }
        public void Dormir(int horas)
        {

        }
        public  bool Hambre()
        {

        }
        public void Acicalar(float minutos)
        {

        }
    }
}
Andrés Javier Eraso Zambrano

Post Reply