What is the super method?



What is the super method?..

Answer / Devendra Kumar Gupta

In PHP, the `parent::` keyword refers to the parent class of the current class and calls its method. It helps in inheritance by enabling child classes to call methods from their parent classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What's the diff. between include() and Include_once().

5 Answers   Intrack,


Write the code for upload a video file in PHP.How will You Play this in Your Page.?

2 Answers   ASD Lab, Convex Digital,


How can we know the count/number of elements of an array?

3 Answers  


What is $_ get in php?

1 Answers  


What is env in laravel?

1 Answers  


What is a string in php?

1 Answers  


how to get server date and time?

10 Answers  


What is the function in PHP do not return a timestamp?

1 Answers  


What is the difference between urlencode and urldecode ?

3 Answers  


Why sessions are used in php?

1 Answers  


When use javascript vs php?

1 Answers  


why header() gives the error like header already sent in php please explain in brief

1 Answers   KMK,


Categories