update: rm -rf to restart from scratch
This commit is contained in:
parent
42e83d8e62
commit
5e999def3a
45 changed files with 813 additions and 366 deletions
|
|
@ -5,22 +5,34 @@
|
|||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/30 13:32:43 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/31 19:54:03 by rparodi ### ########.fr */
|
||||
/* Created: 2025/02/18 16:22:05 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/18 16:41:28 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Cat.hpp"
|
||||
#include <iostream>
|
||||
|
||||
Cat::Cat() {
|
||||
std::cout << "[Cat]\t\tCreating the class" << std::endl;
|
||||
std::cout << "[Cat]\t\tCreating cat class" << std::endl;
|
||||
type = "Cat";
|
||||
}
|
||||
|
||||
Cat::Cat(Cat const & copy) {
|
||||
std::cout << "[Cat]\t\tCreating cat class (copy)" << std::endl;
|
||||
this->type = copy.type;
|
||||
}
|
||||
|
||||
Cat & Cat::operator=(Cat const & assign) {
|
||||
std::cout << "[Cat]\t\tCreating cat class (assign)" << std::endl;
|
||||
this->type = assign.type;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Cat::~Cat() {
|
||||
std::cout << "[Cat]\t\tDeleting the class" << std::endl;
|
||||
std::cout << "[Cat]\t\tDeleting cat class" << std::endl;
|
||||
}
|
||||
|
||||
void Cat::makeSound() const {
|
||||
std::cout << "🐱 | Meow Meow" << std::endl;
|
||||
std::cout << "[Cat]\t\t🐱 | Meow meow" << std::endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue