Private Variables
Private variable and method accessible only within the class. Not possible from outside of class.
PHP Code:
<?php
class dog
{
Private $Name;
}
class poodle extends dog
{ }
$poppy = new poodle;
$poppy->Name = "Poppy";
print ($poppy);
?>
The derived class object try to access the private member variable of class dog. but it not possible to access from out side of class.