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?



What is constructor? ..

Answer / susheel kumar

A constructor is a special type of member function for
automatic initialization of an object.
when ever an object is created the constructor will be
executed automatically.
the name of constructor same as that of its class.the
constructor is declared with no return type,not even void.
constructor should be declared in the public section most
of the time.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are screen objects?

0 Answers  


How to validate email in javascript?

0 Answers  


What is unshift method in JavaScript?

0 Answers  


What are the ways of making comments in javascript?

0 Answers  


What is use of object as function?

0 Answers  


Explain why "self" is needed instead of "this".

0 Answers  


What is the difference between let, const, and var?

1 Answers  


What is eval() in javascript?

0 Answers  


How to use strings as array indexes using javascript?

0 Answers  


How do I use javascript to password-protect my web site?

0 Answers  


How to get the type of arguments passed to a function?

0 Answers  


How do I link an external javascript file to html?

0 Answers  


Categories