Question: C# Language: Design a class called shop from the following Abstract class (inherit iShop class) iShop. The shop class must keep a list of items

C# Language:

Design a class called shop from the following Abstract class (inherit iShop class) iShop. The shop class must keep a list of items or array of items. A shop object can sell, return and purchase item.

public abstract class iShop

{

abstract public bool sellItem(String itemName, int quantity);

abstract public bool returnItem(String itemName, int quantity);

abstract public bool purchaseItem(String itemName, int quantity);

}

Demonstrate the shop class within the Main method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!