Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct StudentA {
- int ID;
- string ime;
- string prezime;
- int* brojSobeID;
- /*
- I tako dalje
- */
- };
- class Korisnik {
- public ~Korisnik() {};
- virtual void postaviID(string _ID) = 0;
- virtual void postaviStatus(int _status) = 0;
- };
- class StudentB : public Korisnik{
- private:
- string ID;
- int status;
- void postavi ID(string _ID) {
- ID =_ID;
- }
- void postaviStatus(int _status) {
- status = _status;
- }
- };
- class Upravitelj : public Korisnik{
- private:
- string ID;
- int status;
- void postavi ID(string _ID) {
- ID =_ID;
- }
- void postaviStatus(int _status) {
- status = _status;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment