Are parent constructors called implicitly inside a class constructor?



Are parent constructors called implicitly inside a class constructor?..

Answer / Abhishek Varshney

Yes, when a child class constructor is called, the parent class constructor is automatically called as well. This is known as chaining constructors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Which php mvc framework is best?

1 Answers  


What is final class and final method?

1 Answers  


What is http get and post?

1 Answers  


What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?

1 Answers  


what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


Explain Magento's autoload functionality and how to instantiate classes? What is the process you take when theming a store? Talk about Magento collections and how you use them?

0 Answers  


Tell me what is the difference between unset() and unlink()?

1 Answers  


What is the use of print_r function in php?

1 Answers  


Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?

2 Answers  


How can you get the size of an image in PHP?

1 Answers  


What are the uses of explode() and implode() functions?

1 Answers  


What is basic php?

1 Answers  


Categories