Can we override static method?



Can we override static method?..

Answer / Santosh Kumar Verma

Yes, in PHP you can override static methods by using the final keyword on the parent class's method and redefining it in the child class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How can we convert asp pages to PHP pages?

3 Answers   Agile Software,


Explain what are psrs?

1 Answers  


•How to upload files using PHP?

3 Answers  


How can use sys time in loop?

0 Answers   Fengate,


How can we convert the time zones using PHP?

1 Answers  


What is printf in php?

1 Answers  


Which php framework is best for security?

1 Answers  


what is the default session expire time in php? what is default file attachment size in mail in php?

3 Answers  


What is the difference between unset and unlink?

1 Answers  


Tell me how is it possible to return a value from a function?

1 Answers  


What is the purpose of the php empty function?

1 Answers  


What are the differences between mysqli_connect and mysqli_pconnect?

1 Answers  


Categories