_MuradPro_

Account

Mar 29th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. public class Account {
  2.   private String name;
  3.   private long id;
  4.   private double balance;
  5.   private boolean vip;
  6.  
  7.  
  8.   public Account(String name, long id, double balance, boolean vip) {
  9.         this.name = name;
  10.         this.id = id;
  11.         this.balance = balance;
  12.         this.vip = vip;
  13.     }
  14.  
  15.  
  16. public String getName() {
  17.     return name;
  18. }
  19.  
  20.  
  21. public void setName(String name) {
  22.     this.name = name;
  23. }
  24.  
  25.  
  26. public long getId() {
  27.     return id;
  28. }
  29.  
  30.  
  31. public void setId(long id) {
  32.     this.id = id;
  33. }
  34.  
  35.  
  36. public double getBalance() {
  37.     return balance;
  38. }
  39.  
  40.  
  41. public void setBalance(double balance) {
  42.     this.balance = balance;
  43. }
  44.  
  45.  
  46. public boolean isVip() {
  47.     return vip;
  48. }
  49.  
  50.  
  51. public void setVip(boolean vip) {
  52.     this.vip = vip;
  53. }
  54.  
  55.  
  56. }
Add Comment
Please, Sign In to add comment