116-PHP class member function calls

<? PHP
     class REN {         // define human 
        public  function Walk () {         // define the members of the human method of 
            echo 'I'll walk. ' ; 
        } 
    } 
    $ REN = new new REN ();         // instantiate a human target 
    $ REN -> Walk ();         // call member methods 
>?

 

Guess you like

Origin www.cnblogs.com/tianpan2019/p/11007437.html