hi.. im a beginner here in java. sadly i was asked to code this one. about inheritance. and i absolutely dont know how.. will someone will help me with this? please.
i was asked to write a discount system for a beauty saloon, which provides services and sells beauty products. it offers 3 types of memberships: premium, Gold and Silver. premium, Gold and Silver members receive a discount of 20%, 15%, and 10% respectively, for all services provided. Customers without membership receive no discount. all members receives a flat 10% discount on products purchased(this might change in the future). the system shall consist of three classes: customer, discount, visit. it shall compute the total bill if a customer purchases $x of products and $y of services, for a visit. also write a test program to exercise all the classes.