Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, please implement the php script that will perform the following Objects.php Create a PHP script that will perform the following tasks. Sub-Task 1: Define

Hello, please implement the php script that will perform the following

image text in transcribedimage text in transcribed

Objects.php Create a PHP script that will perform the following tasks. Sub-Task 1: Define an interface Employee with a method display EmployeeInfo(). Sub-Task 2: Define a class Management which implements Employee interface and contains protected properties: sin, age, salary. Create a constructor method that takes in sin, age, and salary. Implement the method displayEmployee Info() to display the properties of each object instance. Sub-Task 3: Define a derived class Manager that inherits from the Management class and contains a private property: adminLevel. You may need to override the constructor and displayEmployeeInfo method for this derived class. Sub-Task 4: Define a class Development which implements Employee interface and contains protected properties: sin, age, salary. Create a constructor method that takes in sin, age, and salary. Implement the method display EmployeeInfo() to display the properties of each object instance. Sub-Task 5: Define a derived class IT Specialist that inherits from the Development class and contains a private property: projectAssigned. You may need to override the constructor and displayEmployeeInfo() method for this derived class. Sub-Task 6: Instantiate (Create) at least two objects of Manager and display the properties of each object instance. Sample output is as follows: Manager SIN: 123456789, Age: 45, Salary: 110000 , Admin Level: MG-06 SIN: 987654321. Age: 55. Salary: 120000. Admin Level: MG-07 Sub-Task 7: Instantiate (Create) at least two objects of ITSpecialist and display the properties of each object instance. Sample output is as follows: IT Specialist SIN: 567451234, Age: 35, Salary: 100000, Assigned Project: TASR SIN: 234451234. Age: 30. Salary: 90000. Assigned Project: HIMS

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions