Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Profile* profadmin = new Profile("Admin", "Admin", "admin@gmail.com");
- Username* adminUs = new Username("admin");
- SmartUser admin = new BasicUser(adminUs,"admin", profadmin);
- admin->setAdmin(true);
- Profile* profenry = new Profile("Enrico", "Savoca", "bruttapersona@gmail.com");
- Username* enrUs = new Username("enry");
- SmartUser enry = new ExecutiveUser(enrUs, "windows", profenry);
- Profile* profmio = new Profile("Marco", "Boseggia", "prova@gmail.com");
- Username* mioUs = new Username("marco");
- SmartUser io = new BusinessUser(mioUs, "password", profmio);
- x->addUser(admin);
- x->addUser(io);
- x->addUser(enry);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement