Created
June 16, 2021 01:34
-
-
Save Kevin-Gomez10/fac9bc07061e09690a7da81982521e35 to your computer and use it in GitHub Desktop.
POO Act13 clase Animal perro
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
#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