Page 1 of 1

inheritance concept in php

Posted: Wed Jul 04, 2012 1:38 am
by sandip1992
Hi, i am bit confused of inheritance concept in php and would also like to learn CURL library. Pls help me with some

example to understand the concept. I faced this problem while taking PHP training. I have tried learning CURL library, but it is very confusing. If i can get some sample code with

explaination, will be a great help. Thanks in Advance.

--
--
Regards,

Re: inheritance concept in php

Posted: Wed Jul 04, 2012 5:01 am
by social_experiment
Inheritance in php is similar to inheritance in humans, if you create a class (say Class A) and extend it with another class (Class B) then Class A's properties and methods (unless properties & methods are declared as private i think) will be accessible to class B;
http://www.php.net/manual/en/language.o ... itance.php
More about inheritance in php5.