All pastes #368041 Raw Edit

Stuff

public cpp v1 · immutable
#368041 ·published 2007-02-22 20:08 UTC
rendered paste body
#include <iostream>class A{        protected:                void a1(){                        std::cout << "apa" << std::endl;                }        private:                void a2(){}};class B: public A{        public:        void b(){                a1();                //a2(); <- illegal        }};int main(){        B b;        b.b();        //b.a1(); <- illegal        //b.a2(); <- illegal}