how would you implement each in a class designans


How would you implement each in a class design?

Ans) A specialized class "is" a specialization of another class and, thus, has the ISA relationship with the other class. An Employee ISA Person. This relationship is best executed with inheritance. Employee is derived from Person. A class may have an instance of another class. For example, an employee "has" a salary, thus the Employee class has the HASA relationship with the Salary class. This relationship is best executed by embedding an object of the Salary class in the Employee class.       

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: how would you implement each in a class designans
Reference No:- TGS0263535

Expected delivery within 24 Hours