0 7

BIT301 ยท 0 ยท 5 marks

How can you define class and object in PHP. Illustrate with example.

How can you define class and object in PHP. Illustrate with example. [5]

Web Technology IIChapter 6: Object Oriented ProgrammingClass and object definition

A class is a blueprint or template that defines the properties (attributes) and behaviors (methods) of objects. It is a user-defined data type that encapsulates data and functions together. Syntax: An object is an instance of a class. When a class is defined, no memory is allocated; memory is all...