feat: adding the ex02
This commit is contained in:
parent
921b3951d9
commit
e78b8fbe33
14 changed files with 539 additions and 0 deletions
31
cpp04/ex02/Animal.cpp
Normal file
31
cpp04/ex02/Animal.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Animal.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/30 13:21:01 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/31 19:53:47 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Animal.hpp"
|
||||
#include <iostream>
|
||||
|
||||
Animal::Animal() {
|
||||
std::cout << "[Animal]\tCreating the class" << std::endl;
|
||||
type = "";
|
||||
}
|
||||
|
||||
Animal::~Animal() {
|
||||
std::cout << "[Animal]\tDeleting the class" << std::endl;
|
||||
}
|
||||
|
||||
std::string Animal::getType() const {
|
||||
return (type);
|
||||
}
|
||||
|
||||
void Animal::makeSound() const {
|
||||
std::cout << "🤔 | thinking how to make a sound" << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue