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,8 +5,8 @@
|
|||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/30 13:21:01 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/31 19:54:23 by rparodi ### ########.fr */
|
||||
/* Created: 2025/02/18 16:21:46 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/18 17:20:01 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -14,18 +14,25 @@
|
|||
#include <iostream>
|
||||
|
||||
WrongAnimal::WrongAnimal() {
|
||||
std::cout << "[WrongAnimal]\tCreating the class" << std::endl;
|
||||
type = "";
|
||||
std::cout << "[WrongAnimal]\tCreating WrongAnimal class" << std::endl;
|
||||
type = "WrongAnimal";
|
||||
}
|
||||
|
||||
WrongAnimal::WrongAnimal(WrongAnimal const & copy) {
|
||||
std::cout << "[WrongAnimal]\tCreating WrongAnimal class (copy)" << std::endl;
|
||||
this->type = copy.type;
|
||||
}
|
||||
|
||||
WrongAnimal & WrongAnimal::operator=(WrongAnimal const & assign) {
|
||||
std::cout << "[WrongAnimal]\tCreating WrongAnimal class (assign)" << std::endl;
|
||||
this->type = assign.type;
|
||||
return *this;
|
||||
}
|
||||
|
||||
WrongAnimal::~WrongAnimal() {
|
||||
std::cout << "[WrongAnimal]\tDeleting the class" << std::endl;
|
||||
}
|
||||
|
||||
std::string WrongAnimal::getType() const {
|
||||
return (type);
|
||||
std::cout << "[WrongAnimal]\tDeleting WrongAnimal class" << std::endl;
|
||||
}
|
||||
|
||||
void WrongAnimal::makeSound() const {
|
||||
std::cout << "🦊 | What does the fox say ?" << std::endl;
|
||||
std::cout << "[WrongAnimal]\t🦊 | What does the fox say ?" << std::endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue