#include using namespace std; class ex { private : int i; char ch; public : int &prop_i() { return i; } char &prop_ch() { return ch; } }; ex example; int main() { example.prop_i() = 40; example.prop_ch() = 'C'; int i = example.prop_i(); char ch = example.prop_ch(); cout << example.prop_i() << example.prop_ch() << endl << endl; return 1; }