If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among

If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?
A. Define a class to store details of each employee
B. Define a structure to store details of each employee
C. Define separate variable for each detail
D. Define a generic type to store string and number details
 
Answer: a
Explanation: A single class can be defined that represents a single employee of a company. The specific type of functions that can be applied to specific employees can be put into another class that is derived from the existing class.
 

Tìm kiếm

Back
Top