Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public class Palestrante {
  2.  
  3. private String title;
  4.  
  5. private String description;
  6.  
  7. private String speaker;
  8.  
  9. public Palestrante() { }
  10.  
  11. public Palestrante(String title, String description, String speaker) {
  12. this.title = title;
  13. this.description = description;
  14. this.speaker = speaker;
  15. }
  16.  
  17. public String getTitle() {
  18. return title;
  19. }
  20.  
  21. public void setTitle(String title) {
  22. this.title = title;
  23. }
  24.  
  25. public String getDescription() {
  26. return description;
  27. }
  28.  
  29. public void setDescription(String description) {
  30. this.description = description;
  31. }
  32.  
  33. public String getSpeaker() {
  34. return speaker;
  35. }
  36.  
  37. public void setSpeaker(String speaker) {
  38. this.speaker = speaker;
  39. }
  40.  
  41. @Override
  42. public String toString() {
  43. return "name:" + title + ", description:" + description + ", speaker:" + speaker;
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement