Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Mechanik;
  6. class Samochod {
  7. public:
  8. int poziomPaliwa;
  9. bool stanTechniczny;
  10. Samochod(int poziomPaliwa, bool stanTechniczny);
  11.  
  12. int dajPoziompaliwa();
  13. bool dajStanTechniczny();
  14.  
  15. friend class Mechanik;
  16. };
  17.  
  18.  
  19. class Kierowca {
  20. public:
  21. bool czyMogeJechac();
  22. };
  23.  
  24. class Mechanik {
  25. public:
  26. void napraw();
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement