Object-oriented design (OOD) uses objects to design programs. To use an object,
ID: 3562594 • Letter: O
Question
Object-oriented design (OOD) uses objects to design programs. To use an object, you do not need to know the makeup of the object. This information might be hidden from you. However, you need to know the functions of the object (such as buttons) and how to use them. You can use an object by itself or with other objects, but you cannot modify the functions of the object. To create objects, you first need to learn to create classes; to know what type of classes to create, you need to know what an object stores and what operations are needed to manipulate an object
Explanation / Answer
1. list of nouns
Employees
Dependents
2. list of verbs
number of tax deductions
Select_Insurance_Type
Insurance_Cost
Deduct_union_dues
3. classes/objects
Employee
Dependents
InsuranceDetails
Salary [Income - Tax]
4. datamembers
Employee (ID, Name)
Dependents (No of dependents, ID, Name, Age)
InsuranceDetails (Insurance number, Insurer name, Insurance Type, Insurance Cost)
Salary (ID, Employee Name, Gross Salary, Tax Deductions, Net Income)
5. operations
GetEmployeeData()
GetDependents(EmployeeID)
GetInsuranceDetails()
GetInsuranceType(EmployeeName, InsuranceType)
DeductUnionDues()
ComputeSalary()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.