You are on page 1of 1

CLASS

A class is a unit of code that describes the characteristics and behaviors of so


mething, or of
a group of things. A class called Car , for example, would describe the charac
teristics and behaviors common to all cars.
OBJECTS
An object is a specific instance of a class. For example, if you create a C
ar class, you might then go on to
create an object called myCar that belongs to the Car class. You could the
n create a second object,
yourCar , also based on the Car class.
PROPERTIES
In OOP terminology, the characteristics of a class or object are known as its
properties
METHODS
The behaviors of a class that is, the actions associated with the class are
known as its methods .
Methods are very similar to functions; in fact, you define methods in PHP using
the function statement.

You might also like