Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Profile* profadmin = new Profile("Admin", "Admin", "admin@gmail.com");
  2. Username* adminUs = new Username("admin");
  3. SmartUser admin = new BasicUser(adminUs,"admin", profadmin);
  4. admin->setAdmin(true);
  5. Profile* profenry = new Profile("Enrico", "Savoca", "bruttapersona@gmail.com");
  6. Username* enrUs = new Username("enry");
  7. SmartUser enry = new ExecutiveUser(enrUs, "windows", profenry);
  8. Profile* profmio = new Profile("Marco", "Boseggia", "prova@gmail.com");
  9. Username* mioUs = new Username("marco");
  10. SmartUser io = new BusinessUser(mioUs, "password", profmio);
  11. x->addUser(admin);
  12. x->addUser(io);
  13. x->addUser(enry);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement