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 |
What is the difference between JavaScript and jscript?
What is purpose of onerror event handler in javascript?
What boolean operators does JavaScript support?
5 Answers Aptech, HCL, Satyam,
What is the use of type of operator?
Write JavaScript code to use file system in binary format?
Why is object naming important to use in javascript?
How can javascript codes be hidden from old browsers that don't support javascript?
What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??
How to add a new property in existing function javascript?
How can I prevent others from reading/stealing my scripts or images?
What is differential inheritance?
How to create a function in javascript?