...

/

Challenge: Observer Pattern

Challenge: Observer Pattern

In this challenge, you have to implement the observer pattern to solve the given problem.

Problem statement

In this challenge, you have to implement an auction system using the observer pattern.

You have two classes Auctioneer (the person conducting the bid) and Bidder (the bidder bidding for the object).

Here’s what the Auctioneer class needs to do:

  • It should maintain a list of all bidders.

  • It should have a function registerBidder to ...