#include <iostream>
#include "Tomate.h"
#include "AssietteCrudites.h"

using namespace std;

Tomate::Tomate(float t_weight, int t_diameter) : Crudite(t_weight), diameter(t_diameter)
{
    cout << "Building a Tomato" << endl;
}

Tomate::~Tomate() /// On détruit l'instance
{

}

void Tomate::print () const
{
    cout << "tomate: [" << getWeight() << " kg - " << getDiameter() << " cm]" << endl;
}

int Tomate::getDiameter () const
{
    return diameter;
}

float Tomate::getPeel () const
{
    cout << "Epluchure : " << ((getWeight()*(Crudite::PERCENTAGE/10))) << endl;

    return (getWeight()*(Crudite::PERCENTAGE/100)); ///On récupère la quantité perdue
}

