what does a constructor does.
Answers were Sorted based on User's Feedback
Answer / sandeep
constructor is a member function with same name of the class
if we call constructor it will automatically invoke the object
of that class.when we calling the normal member function we
usually creating object of that class then calling it using
the .operator
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / imtiyaz
Constructor is a special type of function which is
available for every class.
Constructors can be used to create a object in different
forms.
Constructors can be used to execute a statements when
object is creating.
Constructors can be used to intialized the object
properties.
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / sucharitha
Constructor is a member function of class that is used to
create objects of that class.
we can also intialise instance variables.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / varam
constructor can also be act as a member ,but it will be
executed when the corresponding object is created.For every
corresponding object it is executed .
No need to call constructor by object.It has the data
members,statements like as a noraml/concrete method
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / anvesh
Constructor in not a member function of the class,so thats
reason why we cannot override.
Constructors are used to create the objects of class and
operated by the new keyword.
And we can pass some intialization parameters to be executed
when the time it creating a object
Is This Answer Correct ? | 1 Yes | 2 No |
How to configure a website in iPlanet/SunOne?
How to Resetting the Administration Password?
how to create a configuration for Oracle iplanet web server?
How to handle exceptions without using try,catch,throw, and log4j
what does a constructor does.
How to configure SSL in iPlanet/SunOne?
What are the SSL formats supported by iPlanet/SunOne?
What are the configuration files for iPlanet/SunOne?
what is swing and jsp. where we use swings and jsp
Where can I find the CLI for Web Server 7.0.9 administration?