Which of the following is NOT a valid visibility keyword for properties and methods in PHP classes?

  • Private
  • Protected
  • Public
  • Final
'Final' is not a visibility keyword; it's used to indicate that a method or class cannot be extended or overridden. The valid visibility keywords are 'private,' 'protected,' and 'public.'
Add your answer
Loading...

Leave a comment

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