Skip to Content
PHPCODE
August 11, 2018
Static Members in php
<?php class abc { public static $data=’test data’; public static function xyz() { echo ‘xyz…
August 11, 2018
Interfaces in php
<?php interface abc { public function test(); public function xyz(); } class def implements abc…
August 11, 2018
Abstract Classes in php
<?php abstract class BaseEmployee { protected $firstname; protected $lastname; public function getFullName() { return $this->firstname.…
August 11, 2018
Encapsulation in php
<?php class TV { protected $model; private $volume; public function volumeUp() { $this->volume++; } public…
August 11, 2018
Inherirance and overriding in php
Inheritance and overriding in PHP <?php class TV { public $model; public $volume; function volumeUp()…
August 11, 2018
Object & Classes in php
<?php class TV { public $model=’xyz’; public $volume=1; function volumeUp() { $this->volume++; } function volumeDown()…
August 10, 2018
OOPS IN PHP
Object Oriented Programming System (1) Object & Classes in php (2) Inherirance in php (3)…
PHPCODE © 2023