ex00: it works!
This commit is contained in:
commit
6d4b5788d7
16 changed files with 318 additions and 0 deletions
20
ex00/Dog.cpp
Normal file
20
ex00/Dog.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue