OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » PHP Quiz

Which keyword is used in PHP to inherit a class?

Difficulty level
  • extends
  • inherit
  • interface
  • extends/implement
In PHP, the 'extends' keyword is used to inherit a class, allowing a new class (the child class) to inherit the properties and methods of an existing class (the parent class). This is a fundamental concept in object-oriented programming (OOP).
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
PHP Quiz
Quiz
How can you retrieve the last inserted ID after inserting a record into a MySQL table using PDO?
Which PHP superglobal array is used to collect form data sent via the GET method?

Related Quiz

  • Which of the following is a common best practice when writing PHP functions?
  • What does $_COOKIE mean?
  • You have a PHP script and you need to get the list of all supported filters. How would you do this?
  • What does accessing a class via :: mean?
  • Which PHP function can be used to check if a function has been defined?

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

PHP QuizMachine Learning QuizReact.js QuizCyber Security QuizPython QuizNode.js QuizASP.NET Core QuizData Science Statistics QuizCSS QuizADO.NET QuizCheckpoint QuizServlet QuizData Modelling QuizAPI Testing QuizDatabase Testing QuizBootstrap QuizAlgorithm QuizComputer Science QuizCommvault QuizJCL Quiz
Copyright © 2025 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy