Blog

Archive for the OOP Category


In PHP a Brief Explanation of Private Properties and Methods in Class
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

<?php

class GrandPa
{
private $name = ‘Mark Henry’;
}

class Daddy extends GrandPa
{
function displayGrandPaName()

Read more…


In PHP a Brief Explanation of Protected Properties and Methods in Class
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

<?php

class GrandPa
{
protected $name = ‘Mark Henry’;
}

class Daddy extends GrandPa
{
function displayGrandPaName()

Read more…


Brief PHP Scope Resolution Operator Explanation
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

In the example below the scope resolution operator (::) ensures the attack() method of the Wizard subclass includes the code
Read more…


A Brief Explanation of Class Inheritance in PHP
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

In PHP, an inherited class (also called an extended class or subclass) usually gets all of the parent class’s methods
Read more…

To Top ↑