43 lines
743 B
C++
43 lines
743 B
C++
#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";
|
|
}
|
|
|