Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Auction extends Sale {
- private String highestBidder;
- public Auction(String saleID, String propertyAddress, int reservePrice) {
- super(saleID, propertyAddress, reservePrice);
- highestBidder = "NO BIDS PLACED";
- }
- public String getPropertyStatus() {
- if (acceptingOffers) {
- return "ACCEPTING BIDS";
- } else (reservePrice ) {
- return "SOLD";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement