Files
42_INT_09_piscine_cpp/d04/Dog.cpp
Hugo LAMY ba3b88f0bf d04 ex00
2022-02-24 17:12:17 +01:00

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