Question: Create a interface called Customer which should have the methods calculatePreferredPoints, calculateCustomerDiscount. Implement this interface in a new class called Promotions. Write the override method
Create a interface called Customer which should have the methods calculatePreferredPoints, calculateCustomerDiscount.
Implement this interface in a new class called Promotions. Write the override method calculatePreferredPoints to return a random points in integer. Use Random Class method to from Java Library Write the override method calculateCustomerDiscount to take the parameter of points and amount. calculate discount if points is more than then return else return
Use your imagination to write an app to instantiate and use promotion class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
