Design a class name FruitBasket offering multiple baskets to the customer.purchaseBasket(int apples, int mangoes, int bananas):The first basket contains the combination of apples,mangoes and bananaspurchaseBasket(int pineapples, intpomogranates):The second basket contains the combination of pomegranates and pineapples.purchaseBasket(intapples):The third basket only apples.The customer can set the quantity of the fruit in the basket, your method will return the amount that customer need to pay for the purchased basket.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here