The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#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();
}