Question: A program currently contains three classes; Employee account, Client account, Admin account. Each class contains forty percent of the same data members and eighty percent

 A program currently contains three classes; Employee account, Client account, Admin

account. Each class contains forty percent of the same data members and

A program currently contains three classes; Employee account, Client account, Admin account. Each class contains forty percent of the same data members and eighty percent of the same exact functionality. What action should be taken to remove the redundant data and functionality? O Write a class with those redundant data member then declare a variable of that type in each account class. Write an interface for the functionality then have each account class inherit from it. Write an Account class which combines all the functionality and data of the original account classes, then remove the original account classes. O Write an Account class with that redundant data, then implement it as the parent for the 3 original account classes. Write an interface for the functionality and have the Account class inherit from it Write an Account class with that redundant data and functionality, then implement it as the parent class for the three original account classes

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!