Question: Question 3: a) Suppose we want to create a Customer class and a VIPCustomer class (where VIP customers are a special type of customer that

 Question 3: a) Suppose we want to create a Customer class

Question 3: a) Suppose we want to create a Customer class and a VIPCustomer class (where VIP customers are a special type of customer that is participating in the rewards program and has access to special deals). Assuming one of them must be a subclass of the other, which should be a subclass of which? Using comments, explain your answer. b) Suppose we want to create a Customer class and a CustomerDatabase class (where we store all our customers). Which should be a subclass of which, or should neither of them be a subclass of the other? Again, explain your answer using comments

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!