Consider the following scenario and identify all the possible objects.
"John and Sam are the employees of Allen software company. SPTS,LMS are the projects that are to be moved to the production environment. Every employee has empid, designation, allcoation status and project has projectid, startDate, endDate, projcost".
Answers
Answered by
9
The number of possible objects are dependent on the number of classes defined in the program.
Explanation:
- Here, a class called project will be declared and to invoke the functions of the class objects like s and l which belongs to the classes of the projects like SPTS and LMS.
- Therefore the object will be created as SPTS s = new SPTS, and LMS l= new LMS.
- Then an employee class will be created which has an object e, then for the moving of an project to the production environment, a class called production is used which make use of an object called P1.
- Therefore total number of possible objects that can be created are 4.
To know more:
1) What is class..........
https://brainly.in/question/7569820.
2) Definition of Class
What is class?
https://brainly.in/question/609923
Similar questions