GATEverse
← GATE CSE 2004

Q34

MCQ2 marks, −0.5

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 get name, getId and compute salary are required. Given the class hierarchy below, possible locations for these functions are:

Figure 1

Figure 2

Choose the best design I, IV, VI, VIII I, IV, VII I, III, V, VI, VIII II, V, VIII

Sign in to save attempts.

Loading…