Access Control Example: Part 2
class dpub : public base {
class dprot : protected base {
// private inheritance: default
class dpriv : private base {
dpub::example_func_pub() {
a=priv; a=privf(); // error
dprot::example_func_prot() {
a=priv; a=privf(); // error
dpriv::example_func_priv() {
a=priv; a=privf(); // error