Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. package com.example.dilber.excelsior;
  2.  
  3. import android.widget.ImageView;
  4.  
  5. public class Product {
  6.  
  7. int id;
  8. String isim;
  9. String fiyat;
  10. int resimId;
  11.  
  12. public Product(int id, String isim, String fiyat, int resimId) {
  13. this.id = id;
  14. this.isim = isim;
  15. this.fiyat = fiyat;
  16. this.resimId = resimId;
  17. }
  18.  
  19. public int getId() {
  20. return id;
  21. }
  22.  
  23. public void setId(int id) {
  24. this.id = id;
  25. }
  26.  
  27. public String getIsim() {
  28. return isim;
  29. }
  30.  
  31. public void setIsim(String isim) {
  32. this.isim = isim;
  33. }
  34.  
  35. public String getFiyat() {
  36. return fiyat;
  37. }
  38.  
  39. public void setFiyat(String fiyat) {
  40. this.fiyat = fiyat;
  41. }
  42.  
  43. public int getResimId() {
  44. return resimId;
  45. }
  46.  
  47. public void setResimId(int resimId) {
  48. this.resimId = resimId;
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement