Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Created June 16, 2021 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevin-Gomez10/fac9bc07061e09690a7da81982521e35 to your computer and use it in GitHub Desktop.
Save Kevin-Gomez10/fac9bc07061e09690a7da81982521e35 to your computer and use it in GitHub Desktop.
POO Act13 clase Animal perro
#include <iostream>
using namespace std;
#include "animal.h"
void Animal::cargar_datos(){
cout<<"Ingrese Nombre Del Animal: " <<endl;
cin>>nombre;
cout<<"Ingrese Raza Del Animal: " <<endl;
cin>>raza;
cout<<"Ingrese Nombre Del Dueño: " <<endl;
cin>>NresponsableP;
};//fin cargar datos
void Animal::Comer()
{
cout<<" Comiendo croquetas...." <<endl;
}//Fin De Comer
void Perro::Ladra()
{
cout<<" Gau!! Gau!! Gau!!!... " <<endl;
}//fin de Ladra
void Perro::Vacunar()
{
cout<<" Vacunando Al Perro... " <<endl;
}//fin de Vacunar
void Perro::VerDatos()
{
cout<<"...Salida De Datos... " <<endl;
cout<<" Nombre Del Perro... " <<nombre<<endl;
cout<<" Raza Del Perro... " <<raza<<endl;
cout<<" El Dueño Es... " <<NresponsableP<<endl;
}//fin de VerDatos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment