Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain me what is the procedure to call a constructor for a parent class?



Explain me what is the procedure to call a constructor for a parent class?..

Answer / Nisha Bharti

In PHP, when you want to call a parent class constructor, you can do so by using the keyword 'parent' followed by the constructor name and arguments within the child class constructor. Example: class Child extends Parent { public function __construct($argument) { parent::__construct($argument); // Calls Parent's constructor }

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

How long does it take to build a wordpress website?

1 Answers  


What is a hook wordpress?

1 Answers  


Define what options are there to implement a multi language site ?

1 Answers  


Is there any limitation for using WordPress?

1 Answers  


Explain me that whether the comparison of string “50ᕙ and integer 60 will work in php or not?

1 Answers  


What do you mean by the custom field in wordpress?

1 Answers  


What is a category page in wordpress?

1 Answers  


How do you make your website private?

1 Answers  


What is the difference between a website and wordpress?

1 Answers  


How do I install the latest version of wordpress?

1 Answers  


Is wordfence free?

1 Answers  


Define what are the template tags in WordPress?

1 Answers  


Categories