Advertisement
Guest User

Company

a guest
Dec 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2. package ds;
  3.  
  4. import java.io.Serializable;
  5.  
  6.  
  7. public class Company extends User implements Serializable {
  8.  
  9. private String title;
  10.  
  11. public Company( String login, String pass,String title) {
  12. super(login, pass);
  13. this.title = title;
  14. }
  15.  
  16. @Override
  17. public String toString() {
  18. return "Company{" + "title=" + title + '}';
  19. }
  20.  
  21.  
  22. public String getTitle() {
  23. return title;
  24. }
  25.  
  26. public void setTitle(String title) {
  27. this.title = title;
  28. }
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement