2079 10

CSC329 ยท 2079 ยท 5 marks

How can you define class and objects in PHP? Write a PHP script to create class and its object.

How can you define class and objects in PHP? Write a PHP script to create class and its object. [5]

Web TechnologyChapter 6: Server Side Scripting using PHPCreating Class and Objects

A class is a "blueprint" for an object, used as a code template to generate objects. It contains the code for properties (variables) and methods (functions). A class is defined using the class keyword, followed by the class name and a pair of curly braces { }. All properties and methods go inside...