1.

It is desired to design an object-oriented employee record system for a company. Each employee has a name, unique id and salary. Employees belong to different categories and their salary is determined by their category. The functions to get Name, getld and compute salary are required. Given the class hierarchy below, possible locations for these functions are:i. getld is implemented in the superclassii. getld is implemented in the subclassiii. getName is an abstract function in the superclassiv. getName is implemented in the superclassv. getName is implemented in the subclassvi. getSalary is an abstract function in the superclassvii. getSalary is implemented in the superclassviii. getSalary is implemented in the subclassChoose the best design(A) (i), (iv), (vi), (viii)(B) (i), (iv), (vii)(C) (i), (iii), (v), (vi), (viii)(D) (ii), (v), (viii)

Answer»


Discussion

No Comment Found

Related InterviewSolutions