#include #include "A.h" #include "B.h" using namespace std; int main(void) { A a(17); B b(34); cout << a.f() << endl; // Affichage 17 (valeur interne _a de a) cout << b.f() << endl; // Affichage 1 (valeur interne _a de b) cout << b.g() << endl; // Affichage 34 (valeur interne _b de b) return 0; }