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 servlet in javascript?
What is a closure in javascript?
What’s relationship between javascript and ecmascript?
What is null in javascript?
How to load another html page from javascript?
What is array in javascript?
Can you access Cookie using javascript?
Are all javascript variables global?
What is JavaScript?
Does javascript care about whitespace?
What is the data type of variables in javascript?
What are anonymous functions in Javascript?
How do you create array in javascript?
Is array an object javascript?
How to shift and unshift using javascript?