Tell me what is the meaning of a final class and a final method?



Tell me what is the meaning of a final class and a final method?..

Answer / Varun Kumar Gupta

In PHP, a `final` class cannot be extended (inherited) by another class. A `final` method in a class cannot be overridden (redefined) by a child class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Does php use html?

1 Answers  


How to call a php function from html button?

1 Answers  


How can we submit a form without a submit button?

23 Answers   ABC, HCL, Infosys, Kept Bug, Panys, Rushmore Consultancy, Torque Infotech, Wipro, zCon Solutions,


What does accessing a class via :: means?

1 Answers  


How to get the DNS servers of a domain name?

1 Answers   Life Infotech,


What is difference between strstr() and stristr()?

1 Answers  


How can you tell if a number is even or odd without using any condition or loop?

1 Answers  


Actually am working in existing project which is developed in .net, am converting the .net into php code. am facing problem after uploading the .php in server. amgetting the error message like "The page cannot be found" but its working perfectly in local host

2 Answers  


Explain what is the function file_get_contents() usefull for?

1 Answers  


How can we submit form without a submit button?

1 Answers  


What are the advantages of php mysql?

1 Answers  


What's php?

1 Answers  


Categories