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