Create a class diagram that shows an interface called buyer


The Buyers and Sellers Project

The Buyers and Sellers project will support people and businesses who have a product to sell (the Sellers) and people or businesses who want to purchase a product (the Buyers). The application will provide a broker system that will help Buyers search for, find, and purchase the product that they want.

Each Buyer will have a collection of products that they want to purchase. Each Seller has a product that they are offering for sale. To find and purchase a product, a Buyer will contact a broker who will attempt to locate that product for the Buyer. The broker will ask the Sellers if they can supply the desired product. Once a Seller of the product has been located, the broker will retrieve the product for the Buyer.

The broker portion of the application has already been developed. Your role in the project is to develop the Buyer and Seller classes. The broker will communicate with both Buyers and Sellers.

Each Buyer must know:

1. Their name

2. The products they want to purchase

3. The products they have purchased

Each Buyer must be able to:

1. Provide their collection of products they want to purchase

2. Provide their name

3. Provide the collection of products they have purchased

4. Add a new product to their collection of purchased items

Each Seller must know:

1. Their name

2. The product they want to sell

Each Seller must be able to:

1. Provide their name

2. Provide the product they want to sell

3. Answer if they can provide a particular product

4. Sell their product

You will start by designing some of the classes needed to build the Buyers and Sellers portion of the application. Create Java classes that will be used in the BuyersAndSellers Eclipse project. Your classes will work with the classes that already exist in the BuyersAndSellers project.

Create a test class that will help you verify that your class is operating correctly.

1. Create a class diagram that shows an interface called Buyer in the Violet UML editor. This interface should declare the methods to perform a buyer's responsibilities.

2. Add a class called BuyerImpl to the class diagram that implements the Buyer interface.

3. Add an interface called Seller that declares the methods to perform a seller's responsibilities.

4. Add a class called SellerImpl that implements the Seller interface.

5. Open the Sellers project in Eclipse and examine the methods that are declared in the Seller interface.

6. Write code to implement the methods for the SellerImpl class.

7. Write code in the SellerImplTestDriver class to test the methods in your SellerImpl class.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class diagram that shows an interface called buyer
Reference No:- TGS01091302

Expected delivery within 24 Hours