fork download
  1. class rodzice
  2. {
  3. protected:
  4. int zmienna;
  5. };
  6.  
  7. class potomstwo: private rodzice
  8. {
  9. public:
  10. using rodzice::zmienna;
  11. potomstwo(){}
  12. };
  13.  
  14. int main(){
  15.  
  16. potomstwo xyz;
  17. xyz.zmienna=1;
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty