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...

what is constructor in a class, how it is work, how it is call?

Answer Posted / sei thu htun

Constructors are functions in a class that are automatically
called when you create a new instance of a class with new. A
function becomes a constructor, when it has the same name as
the class. If a class has no constructor, the constructor of
the base class is being called, if it exists.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps involved to run php?

1009


Explain why would we use === instead of ==?

885


What is preg_match?

907


How to retrieve values out of an array?

970


How does csrf token work?

967


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

953


Explain me what is the w3c?

1043


When use javascript vs php?

971


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?

916


How to get ip address of a server in php?

974


What are the Formatting and Printing Strings available in PHP?

1030


What is the use of count() function in php?

926


How do I update php?

991


Which php framework is in demand?

853


What is the function used to change the root directory in PHP?

977