Advertisement
scorpion01

Untitled

Sep 30th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package com.example.hapus;
  2.  
  3. public class Model {
  4.     private int img;
  5.     private String title, description;
  6.  
  7.     public Model(int img, String title, String description) {
  8.         this.img = img;
  9.         this.title = title;
  10.         this.description = description;
  11.     }
  12.    
  13.     public int getImg() {
  14.         return img;
  15.     }
  16.  
  17.     public void setImg(int img) {
  18.         this.img = img;
  19.     }
  20.  
  21.     public String getTitle() {
  22.         return title;
  23.     }
  24.  
  25.     public void setTitle(String title) {
  26.         this.title = title;
  27.     }
  28.  
  29.     public String getDescription() {
  30.         return description;
  31.     }
  32.  
  33.     public void setDescription(String description) {
  34.         this.description = description;
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement