Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package eAuctionSystem;
  2.  
  3.  
  4.  
  5. public class Bid {
  6.  
  7. private double amount;
  8. private Buyer who;
  9. private String when;
  10. private Auction auction;
  11.  
  12. public Bid(double amount, Buyer who, String when, Auction auction) {
  13.  
  14. this.amount = amount;
  15. this.who = who;
  16. this.when = when;
  17. this.auction = auction;
  18.  
  19. }
  20.  
  21. /**
  22. * Gets the amount of the bid
  23. * @return Returns amount of the bid
  24. */
  25. public double getAmount() {
  26. return this.amount;
  27. }
  28.  
  29. /**
  30. * Gets the buyer name
  31. * @return Returns the buyer name
  32. */
  33. public Buyer getWho() {
  34. return this.who;
  35. }
  36.  
  37. /**
  38. * Gets the time when the bid ends
  39. * @return Returns the time when bid ends
  40. */
  41. public String getWhen() {
  42. return this.when;
  43. }
  44.  
  45. /**
  46. * Gets the auction
  47. * @return Returns the auction
  48. */
  49. public Auction getAuction() {
  50. return this.auction;
  51. }
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement