Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. public class Auction extends Sale {
  3.  
  4. private String highestBidder;
  5.  
  6. public Auction(String saleID, String propertyAddress, int reservePrice) {
  7. super(saleID, propertyAddress, reservePrice);
  8. highestBidder = "NO BIDS PLACED";
  9.  
  10. }
  11.  
  12. public String getPropertyStatus() {
  13. if (acceptingOffers) {
  14. return "ACCEPTING BIDS";
  15. } else (reservePrice ) {
  16. return "SOLD";
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement