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 |
Is javascript case sensitive language?
What are the characteristics of javascript ‘strict mode’?
What are the advantages of javascript?
Why are callbacks used?
How many functions are there in javascript?
Explain export & import in javascript?
How much does a javascript developer make?
How many types of functions JavaScript supports?
How can you get the total number of arguments passed to a function?
Explain function hoisting in javascript?
What is strict mode?
Who introduced javascript?