Write a program in java that will contain a class named GroceryStore for storing items in grocery store. It must include information about item name(String), price (float), and quantity(int). A class named SaleGroceryStore is inherited from GroceryStore contain discount (int). Discount is in percentage that will determine how much discount is available on discounted item. Create required accessor, mutator methods and constructors. Also test these in main.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here