Skip to content
Snippets Groups Projects
Commit 30f565c6 authored by Debora's avatar Debora
Browse files

eight commit: adicionando mamiferos (erro)

parent 6dbd2b7e
No related branches found
No related tags found
No related merge requests found
Pipeline #
#include "mamifero.h" #include "mamifero.h"
Mamifero::Mamifero(int identity, string clas, string name, string scientific, char sex,
Mamifero::Mamifero(int identity, string clas, string name, string scientific, char sex,
float size, string diet, string baptism, Veterinario vet, Tratador caretaker, string fur_color): float size, string diet, string baptism, Veterinario vet, Tratador caretaker, string fur_color):
Animal(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker), Animal(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker),
cor_pelo(fur_color) cor_pelo(fur_color)
...@@ -16,4 +17,4 @@ string Mamifero::getCor_pelo(){ ...@@ -16,4 +17,4 @@ string Mamifero::getCor_pelo(){
void Mamifero::setCor_pelo(string fur_color){ void Mamifero::setCor_pelo(string fur_color){
cor_pelo = fur_color; cor_pelo = fur_color;
} }
\ No newline at end of file
#ifndef __MAMIFERO_H__ #ifndef __MAMIFERO_H__
#define __MAMIFERO_H__ #define __MAMIFERO_H__
#include "animal.h" #include "animal.h"
#include <fstream>
class Mamifero: public Animal{ class Mamifero: public Animal{
private: private:
...@@ -11,7 +12,6 @@ class Mamifero: public Animal{ ...@@ -11,7 +12,6 @@ class Mamifero: public Animal{
void setCor_pelo(string fur_color); void setCor_pelo(string fur_color);
Mamifero(int identity, string clas, string name, string scientific, char sex, float size, string diet, string baptism, Veterinario vet, Tratador caretaker, string fur_color); Mamifero(int identity, string clas, string name, string scientific, char sex, float size, string diet, string baptism, Veterinario vet, Tratador caretaker, string fur_color);
}; };
#endif #endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment