21 lines
337 B
C++
21 lines
337 B
C++
#include "Gato.hpp"
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
Gato::Gato(std::string nome){
|
|
cout << "Nasce um gatinho chamado " << nome << endl;
|
|
_nome = nome;
|
|
}
|
|
|
|
Gato::~Gato(){
|
|
cout << "E " << _nome << " nos deixou" << endl;
|
|
}
|
|
|
|
void Gato::acorda(){
|
|
mia();
|
|
}
|
|
|
|
void Gato::mia(){
|
|
cout << _nome << " faz MIAU" << endl;
|
|
} |