#include "ClassB.h" #include using namespace std; void B::SpillAData(A a) { cout << "The data from A is " << endl; cout << "\tPublic: " << a.pubData << endl; cout << "\tProtected: " << a.protData << endl; cout << "\tPrivate: " << a.privData << endl; }