Web Technology II20825 marksClass and object definition
Write a program to create a class Employee with some attributes and methods. Create an object of the class and display some output using any method in the class.
Write a program to create a class Employee with some attributes and methods. Create an object of the class and display some output using any method in the class. [5]
A class is the blueprint that describes what an employee record holds and what can be done with it, and an object is one concrete employee built from that blueprint. In PHP the properties are declared with a visibility keyword, the constructor is the magic method construct(), and inside any metho...