Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  It is desired to design an object-oriented em... Start Learning for Free
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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:
1. getld is implemented in the superclass.
2. getId is implemented in the subclass.
3. getName is an abstract function in the superclass.
4. getName is implemented in the superclass.
5. getName is implemented in the subclass:
6. getSalary is an abstract function in the superclass.
7. getSalary is implemented in the superclass.
8. getSalary is implemented in the subclass

Choose the best design
  • a)
    1,4, 6 and 8
  • b)
    1,4 and 7
  • c)
    1,3, 5, 6 and 8
  • d)
    2, 5 and 8
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
It is desired to design an object-oriented employee record system for ...
Each employee has a unique id, name and salary, Employees may have different salary as per their category e.g. Manager, Engineer or Secretary.
Id is unique for each employee for a given employee with Id name is unique.
Hence, get Id and get name must be implemented in Superclass as whatever their designation it will not change. Get salary must be an abstract function in superclass and implemented in subclasses.
View all questions of this test
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer?
Question Description
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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer?.
Solutions for 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer?, a detailed solution for 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice 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, get ld and compute Salary are required. Given the class hierarchy below, possible locations for these functions are:1. getld is implemented in the superclass.2. getIdis implemented in the subclass.3. getName is an abstract function in the superclass.4. getName is implemented in the superclass.5. getName is implemented in the subclass:6. getSalary is an abstract function in the superclass.7. getSalary is implemented in the superclass.8. getSalary is implemented in the subclassChoose the best designa)1,4, 6 and 8b)1,4 and 7c)1,3, 5, 6 and 8d)2, 5 and 8Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev