Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 3fed99adb755541133c639a531bd4cf6 > files > 80

perl-ExtUtils-XSpp-0.180.0-7.mga5.i586.rpm

#include "Dog.h"
#include <string>
#include <iostream>

using namespace std;

Dog::Dog(const std::string& name)
  : Animal(name)
{}

void
Dog::Bark()
  const
{
  cout << "Woof" << endl;
}

void
Dog::MakeSound()
  const
{
  Bark();
}

Dog*
Dog::Clone()
  const
{
  return new Dog(GetName());
}

void
Dog::MakeDogBark(const Dog& d)
{
  d.Bark();
}