Ejemplo n.º 1
0
<?php

include 'Class-parent.php';
include 'Class-child.php';
/* 
 * Working with inheritence of Object oriented programming
 * To change this template file, choose Tools | Templates
 * Developed by Anam
 */
/**
 * Call the static method in
 * the parent class
 */
echo ParentClass::loveEachOther();
$ChildClass = new ChildClass();
$ChildClass->parentProductFunction();
echo $ChildClass->override();