20 lines
427 B
C++
20 lines
427 B
C++
#include "Cat.hpp"
|
|
#include <iostream>
|
|
|
|
Cat::Cat() {
|
|
std::cout << __PRETTY_FUNCTION__ << std::endl;
|
|
type = "Cat";
|
|
}
|
|
|
|
Cat::Cat(const Cat &other) {
|
|
std::cout << __PRETTY_FUNCTION__ << std::endl;
|
|
this->type = other.type;
|
|
}
|
|
|
|
Cat::~Cat() { std::cout << __PRETTY_FUNCTION__ << std::endl; }
|
|
|
|
Cat &Cat::operator=(const Cat &other) {
|
|
std::cout << __PRETTY_FUNCTION__ << std::endl;
|
|
this->type = other.type;
|
|
return *this;
|
|
}
|