Files
42_INT_09_piscine_cpp/d04/ex01/Dog.cpp

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";
}