CPP04/ex02/inc/AAnimal.hpp
2025-04-14 22:07:29 +02:00

30 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* AAnimal.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/04/05 16:53:44 by whaffman #+# #+# */
/* Updated: 2025/04/14 21:27:26 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
class AAnimal
{
protected:
std::string type;
public:
AAnimal();
AAnimal(const AAnimal &other);
virtual ~AAnimal();
AAnimal &operator=(const AAnimal &other);
virtual void makeSound(void) const = 0;
std::string getType(void) const;
};