Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public class Post {
  2.  
  3. int userId;
  4. int id;
  5. String title;
  6. String body;
  7.  
  8. public Post(int userId, int id, String title, String body) {
  9. this.userId = userId;
  10. this.id = id;
  11. this.title = title;
  12. this.body = body;
  13. }
  14.  
  15. public int getUserId() {
  16. return userId;
  17. }
  18.  
  19. public int getId() {
  20. return id;
  21. }
  22.  
  23. public String getTitle() {
  24. return title;
  25. }
  26.  
  27. public String getBody() {
  28. return body;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement