Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

#include "Animal.h"
#include <string>
#include <iostream>
#include <exception>
Animal::Animal(const std::string& name) :
fName(name)
{}
void
Animal::SetName(const std::string& newName)
{
fName = newName;
}
std::string
Animal::GetName()
const
{
return fName;
}
void
Animal::MakeSound()
const
{
throw CannotMakeSoundException();
}