Exercice POO on C++