au milieu des tests d'heritance de classe

This commit is contained in:
Hugo LAMY
2022-02-20 19:42:37 +01:00
parent 7e65467a27
commit 8918b348e0
10 changed files with 188 additions and 26 deletions

View File

@@ -0,0 +1,41 @@
#include "Base.hpp"
/*
* default/parametric constructor
*/
Base::Base( void ) {
std::cout << "base default constructor\n";
return;
}
/*
* destructor
*/
Base::~Base( void ) {
return;
}
/*
* copy constructor
*/
Base::Base( Base const & src ) {
std::cout << "base copy constructor\n";
*this = src;
return;
}
/*
* assignement operator
*/
Base & Base::operator=( Base const & rhs ) {
std::cout << "base assignations operator\n";
return *this;
}
Base::Base(int i) {
std::cout << "base parameters constructor\n";
}