Private Properties Are Accessible Only Inside The Methods Of The Class That Defined Them

<?
    class Dog {
            private $Name;
            private $DogTag;            public function setName($NewName) {
                    // etc
            }
    }
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.