42 lines
741 B
C++
42 lines
741 B
C++
#include "Dog.hpp"
|
|
|
|
/*********************************************
|
|
* CONSTRUCTORS
|
|
*********************************************/
|
|
|
|
Dog::Dog() {
|
|
type = "dog";
|
|
return;
|
|
}
|
|
|
|
Dog::Dog( Dog const & src ) {
|
|
*this = src;
|
|
return;
|
|
}
|
|
|
|
/*********************************************
|
|
* DESTRUCTORS
|
|
*********************************************/
|
|
|
|
Dog::~Dog() {
|
|
return;
|
|
}
|
|
|
|
/*********************************************
|
|
* OPERATORS
|
|
*********************************************/
|
|
|
|
Dog & Dog::operator=( Dog const & rhs ) {
|
|
Animal::operator=(rhs);
|
|
return *this;
|
|
}
|
|
|
|
/*********************************************
|
|
* PUBLIC MEMBER FUNCTIONS
|
|
*********************************************/
|
|
|
|
void Dog::makeSound() const {
|
|
std::cout << "*woof*\n";
|
|
}
|
|
|