update: rm -rf to restart from scratch

This commit is contained in:
Raphael 2025-02-18 20:20:27 +01:00
parent 42e83d8e62
commit 5e999def3a
45 changed files with 813 additions and 366 deletions

View file

@ -5,22 +5,34 @@
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/30 13:40:30 by rparodi #+# #+# */
/* Updated: 2025/01/31 19:53:02 by rparodi ### ########.fr */
/* Created: 2025/02/18 16:22:02 by rparodi #+# #+# */
/* Updated: 2025/02/18 16:51:41 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Dog.hpp"
#include <iostream>
Dog::Dog() {
std::cout << "[Dog]\t\tCreating the class" << std::endl;
std::cout << "[Dog]\t\tCreating Dog class" << std::endl;
type = "Dog";
}
Dog::Dog(Dog const & copy) {
std::cout << "[Dog]\t\tCreating Dog class (copy)" << std::endl;
this->type = copy.type;
}
Dog & Dog::operator=(Dog const & assign) {
std::cout << "[Dog]\t\tCreating Dog class (assign)" << std::endl;
this->type = assign.type;
return *this;
}
Dog::~Dog() {
std::cout << "[Dog]\t\tDeleting the class" << std::endl;
std::cout << "[Dog]\t\tDeleting dog class" << std::endl;
}
void Dog::makeSound() const {
std::cout << "🐶 | Wouf Wouf" << std::endl;
std::cout << "[Dog]\t\t🐶 | Wouf wouf" << std::endl;
}