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 are the data types in js?
name any two javascript functions which are used to convert nonnumeric values into numbers?
What is differential inheritance?
Is there any class in javascript?
Define anonymous function.
Name the datatypes of javascript?
What is data type in javascript?
What is an Event Bubbling in Javascript?
Explain the difference between call() and apply()?
Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..
java pgme for class members hours:minutes:seconds then the constructor expects milliseconds as assignment and initialize data members the members function print hh:mm:ss 90,000 milliseconds passed in constructor then the output is 00:01:30
Why javascript is so popular?
Which built-in method returns the characters in a string beginning at the specified location?
What is the use of a typedarray object in javascript?
What is are the types of the pop up box es available in javascript?