How many types of inheritances used in php and how we achieve it.



How many types of inheritances used in php and how we achieve it...

Answer / Ranjna Jaiswal

PHP supports single inheritance, multiple inheritance (although it's not officially supported due to some complications), and interfaces. To achieve single inheritance, you can use the 'extends' keyword when creating a class. For interfaces, you create a new file with the '.php' extension and the word 'interface' followed by its name.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the ioncube php loader?

1 Answers  


How to get the number of characters in a string?

1 Answers  


How to download a php script directly in your script page?

3 Answers   A1 Technology, Zmanda,


How can I check if a value is already in an array?

3 Answers   Rushmore Consultancy,


List some string function name in php?

1 Answers  


What is difference between mysql_connect and mysqli_connect?

1 Answers  


What are php string functions?

1 Answers  


Can age be a variable?

1 Answers  


How to Retrieve video files in php from database.....and how to store video on database..

2 Answers  


Where is session id stored?

1 Answers  


What is the use of get and post method in php?

1 Answers  


Is php dying 2018?

1 Answers  


Categories