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 JavaScript Data Types?

0 Answers  


How can I define an array in JavaScript?

4 Answers   Accenture, Exevo, OM IT Solutions,


What are the security related issues in JavaScript scripts?

3 Answers   Four soft,


What is an enum

1 Answers  


How to create an array in javascript?

0 Answers  






What is difference between scripting and programming?

0 Answers  


Define a named function in javascript.

0 Answers  


What are ‘settimeout()’?

0 Answers  


Is javascript the future?

0 Answers  


How can I learn javascript fast?

0 Answers  


How can I prevent others from reading/stealing my scripts or images?

0 Answers  


I need project details about WEB CONTENT FILTERING USING NEURAL NETWORKS and how to explain it....plz help me in this topic.....

0 Answers  


Categories