Answer Posted / 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 View All Answers
What is use of JavaScript and jquery?
Is javascript enabled on chrome?
What is output of undefined * 2 in javascript?
What is the difference between typeof and instanceof operators in Javascript?
How are tag positions used in javascript?
Is javascript default scripting language?
Explain javascript debounce function?
What happens when the recursion calling is applied on two functions?
Event bubbling and Event Capturing in JavScript?
What is "this"?
Are Javascript and JScript the same?
What is emotional closure?
How to test 404 page in QA
What is undefined in math?
What is the difference between undefined and object?