In PHP, to ensure that a method in a child class has the same name, number, and type of arguments as a method in its parent class, you use the ________ keyword.
- 'new'
- 'extends'
- 'this'
- 'private'
In PHP, the 'extends' keyword is used to create a child class that inherits properties and methods from its parent class. It enforces method signature conformity.
Loading...
Related Quiz
- Explain how you can update Memcached when you make changes to PHP?
- A PHP do...while loop will always execute its block of code at least ______ times.
- In PHP, variable names can start with a number.
- What should you do first before accessing session variables in a PHP script?
- Consider a scenario where you are designing a survey form where questions can be dynamically added by the admin. How would you design the form fields to ensure all data is captured correctly in PHP?