The makeABid method includes the following two statements: Bid bid = new Bid(bidder, value); boolean successful =
Fantastic news! We've Found the answer you've been seeking!
Question:
The makeABid method includes the following two statements:
Bid bid = new Bid(bidder, value);
boolean successful = selectedLot.bidFor(bid);
The bid variable is only used here as a placeholder for the newly created Bid object before it is passed immediately to the lot's bid For method. Rewrite these statements to eliminate the bid variable by using an anonymous object as seen in the enter Lot method.
Related Book For
Quantitative Methods for Business
ISBN: 978-0324651751
11th Edition
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey cam
Posted Date: