This commit is contained in:
Hugo LAMY
2022-02-24 17:12:17 +01:00
parent 0d5993dd5a
commit ba3b88f0bf
15 changed files with 507 additions and 8 deletions

42
d04/Cat.cpp Normal file
View File

@@ -0,0 +1,42 @@
#include "Cat.hpp"
/*********************************************
* CONSTRUCTORS
*********************************************/
Cat::Cat() {
type = "cat";
return;
}
Cat::Cat( Cat const & src ) {
*this = src;
return;
}
/*********************************************
* DESTRUCTORS
*********************************************/
Cat::~Cat() {
return;
}
/*********************************************
* OPERATORS
*********************************************/
Cat & Cat::operator=( Cat const & rhs ) {
Animal::operator=(rhs);
return *this;
}
/*********************************************
* PUBLIC MEMBER FUNCTIONS
*********************************************/
void Cat::makeSound() const {
std::cout << "*miaow*\n";
}