init to 0

This commit is contained in:
Camille Chauvet 2023-08-03 14:18:05 +02:00
parent fd281ea056
commit 9fafccf65f
3 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Fixed::~Fixed()
Fixed::Fixed()
{
this->_value = 0;
std::cout << "Default constructor called" << std::endl;
}

View File

@ -10,6 +10,7 @@ Fixed::~Fixed()
Fixed::Fixed()
{
this->_value = 0;
std::cout << "Default constructor called" << std::endl;
}

View File

@ -10,6 +10,7 @@ Fixed::~Fixed()
Fixed::Fixed()
{
this->_value = 0;
std::cout << "Default constructor called" << std::endl;
}