Advertisement
tei123

virt

Sep 29th, 2016
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. class instrument
  7. {
  8. public: virtual void gra()
  9. {
  10. cout<<"gram /n";
  11. };
  12. };
  13.  
  14. class gitara : public instrument{
  15. void gra(){
  16. cout << "gram na gitarze\n""
  17. }
  18. };
  19.  
  20. int main(int argc, char *argv[])
  21. {
  22.  
  23. system("PAUSE");
  24. return EXIT_SUCCESS;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement