fork download
  1. #include<iostream>
  2. using namespace std;
  3. class xe{
  4. protected:
  5. string ten;
  6. int bs;
  7. public:
  8. int init(string t,int b){
  9. ten =t ;
  10. bs=b;
  11. }
  12. void in(){
  13. cout<<"Bien so "<<bs;
  14. }
  15. };
  16. class dap:public xe{
  17. public:
  18. void in(){
  19. xe::in();
  20. cout<<bs*2;
  21. }
  22. };
  23. int main (){
  24. dap x;
  25. x.init("BMW",32);
  26. x.inx();
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:26:3: error: 'class dap' has no member named 'inx'
 x.inx();
   ^
stdout
Standard output is empty