Newer
Older
#include "reptil.h"
Reptil::Reptil(int identity, string clas, string name, string scientific, char sex, float size,
string diet, string baptism, Veterinario vet, Tratador caretaker,
bool isPoisonous, string poison_type):
Animal(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker),
venenoso(isPoisonous), tipo_veneno(poison_type)
{}
bool Reptil::getVenenoso(){
return venenoso;
}
void Reptil::setVenenoso(bool isPoisonous){
venenoso = isPoisonous;
}
string Reptil::getTipo_veneno(){
return tipo_veneno;
}
void Reptil::setTipo_venono(string poison_type){
tipo_veneno = poison_type;
}