River[170]% g++ priv1.cpp priv1.cpp:22:8: error: 'priv_data' is a private member of 'foo' obj.priv_data = 19 ; ^ priv1.cpp:14:12: note: declared private here int priv_data ; ^ 1 error generated. River[171]%