class two extends one {}

In object oriented php programming concept if I extends class one into class two and make an object named as $second = new two(); then what will happen actually ??

Then I can access all property of class one by using the object "$second->first_string;" cause I've extended all property of class one from class two.

Note : One protected and public property is possible to access from other class.

Comments

Popular posts from this blog

Git post receive setup at server for git push to the production from local machine