Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What type of inheritance that PHP supports?

Answer Posted / mahesh

PHP can support single,multilevel,hierarchical and hybrid
inheritance but not multiple inheritence because of diamond problem.
Q:what is diamond problem?
A:suppose "class A extends class B and also class C".
then if class B contains function foo() and class C also contains function foo().if your creates object to the class A
and try to call function foo() then which class function it will take class A or Class B.. in this case diamond problem will be occur.
But we can avoid this problem through "INTERFACE".

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are html entities?

991


What are the characteristics of php variables?

1141


What is smarty?

1022


What is input sanitization in php?

1017


How to remove blank spaces from the string?

1052


What is the purpose of php?

1007


Are php sessions secure?

1024


How to include variables in double-quoted strings in php?

1009


What is isset function in php?

1244


What is the output of the ucwords function in this example?

1075


What is meant by an associative array?

1041


Tell me how to create a text file in php?

1036


Steps for the payment gateway processing?

1071


How to pass an argument to a function?

1301


What is the use of limit in mysql?

1037