jelenpivo123

automobil.h

Oct 5th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include "Registracija.h"
  4. #include "Vozilo.h"
  5. using namespace std;
  6.  
  7. class Automobil : public Vozilo, public Registracija{
  8.  
  9. private:
  10. int snagaMotora;
  11. int brojVrata;
  12. int brojSasije;
  13. string boja;
  14.  
  15. public:
  16. void upisiInformacije(string); // o automobilu i registraciji u fajl
  17.  
  18. static void ispisiIzvestaj(string); // ispisuje sve iz text fajla
  19.  
  20. void setSnagaMotora(int);
  21. void setBrojVrata(int);
  22. void setBrojSasisje(int);
  23. void setBoja(string);
  24.  
  25. int getSnagaMotora();
  26. int getBrojVrata();
  27. int getBrojSasije();
  28. string getBoja();
  29.  
  30. void print();
  31.  
  32. Automobil();
  33. Automobil(string,string,int, string, string, int,int,int,string);
  34.  
  35. };
Advertisement
Add Comment
Please, Sign In to add comment