trizehn

Bid

Nov 4th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class Bid here.
  4.  *
  5.  * @author Daffa Tristan Firdaus
  6.  * @version 4 November 2020
  7.  */
  8. public class Bid
  9. {
  10.    private final Person bidder;  
  11.    private final long value;
  12.    public Bid(Person bidder, long value)
  13.    {
  14.        this.bidder = bidder;
  15.        this.value = value;
  16.    }
  17.    public Person getBidder()  
  18.    {  
  19.        return bidder;  
  20.    }
  21.    public long getBid()  
  22.    {  
  23.        return value;  
  24.    }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment