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.
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
Post a Comment