Private And Inheritance

<?
    class Dog {
            private $Name;
    }    class Poodle extends Dog { }    $poppy = new Poodle;
    $poppy->Name = "Poppy";
    print_r($poppy);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.