feat: finishing the ex00 of the module 04
This commit is contained in:
parent
1c1e515ceb
commit
cbb34cf2e0
13 changed files with 181 additions and 36 deletions
|
|
@ -6,21 +6,21 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/30 13:32:43 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/30 13:38:46 by rparodi ### ########.fr */
|
||||
/* Updated: 2025/01/31 19:54:03 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Cat.hpp"
|
||||
|
||||
Cat::Cat() {
|
||||
std::cout << "[Cat] Creating the class" << std::endl;
|
||||
std::cout << "[Cat]\t\tCreating the class" << std::endl;
|
||||
type = "Cat";
|
||||
}
|
||||
|
||||
Cat::~Cat() {
|
||||
std::cout << "[Cat] Deleting the class" << std::endl;
|
||||
std::cout << "[Cat]\t\tDeleting the class" << std::endl;
|
||||
}
|
||||
|
||||
std::string Cat::getType() {
|
||||
return (type);
|
||||
void Cat::makeSound() const {
|
||||
std::cout << "🐱 | Meow Meow" << std::endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue