//Sample showing use of const and data access within class #include using namespace std; class C{ public: C() { data=1; } void Display(C C2) const { C2.data = 5; //note that friends and member functions of a class //have access to private members of an object of //that class, even though we are "in" C1 we can //access private data of C2 cout<<"C1 data:"<