fork download
  1.  
  2. class baseclass
  3. {
  4. int **body;
  5. public:
  6. int ** getbody(){return body; }
  7. };
  8.  
  9. class derivedclass: public baseclass
  10. {
  11. public:
  12. void update()
  13. {
  14. getbody()[0][1] = 10;
  15. }
  16. };
  17.  
  18. int main(){}
  19.  
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty