Web Technology II05 marksClass and object definition
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]
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...