Concept for Object Oriented Design

In this chapter you will learn:

  1. What Is Object-Oriented Programming?
  2. What are classes
  3. What are Objects
  4. What are Properties
  5. What are Methods

Object-Oriented

With Object-Oriented Programming, we can model the general idea by using a class.

Class

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

Object

An object is a specific instance of a class.

Properties

The characteristics of a class or object are known as its properties.

Method

The behaviors(actions) of a class are known as its methods.

Next chapter...

What you will learn in the next chapter:

  1. How to define a class
  2. Syntax to define a class
  3. Example - Define a class
Home » PHP Tutorial » PHP Class Definition
Concept for Object Oriented Design
PHP Class Definition
PHP Create Object from Class
PHP Class Properties
PHP Iterating Object Properties
PHP Class Inheritance
PHP Overriding Methods
PHP final Classes and Methods
PHP Abstract Class
PHP Class Access Control Modifiers
PHP Class Constructor
PHP Class Destructors
PHP Class Magic Methods