what does a constructor does.

Answers were Sorted based on User's Feedback



what does a constructor does...

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

what does a constructor does...

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

what does a constructor does...

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

what does a constructor does...

Answer / manmohan

constructor is a function, which would be executed only at
the time of creating an object.
constructor would be executed only once on the object.

Is This Answer Correct ?    3 Yes 1 No

what does a constructor does...

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

what does a constructor does...

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

Post New Answer

More SunOne Interview Questions

How to configure a website in iPlanet/SunOne?

0 Answers  


How to Resetting the Administration Password?

1 Answers  


how to create a configuration for Oracle iplanet web server?

1 Answers  


How to handle exceptions without using try,catch,throw, and log4j

4 Answers   Condeco, Marlabs,


what does a constructor does.

6 Answers   Marlabs, Microsoft,






How to configure SSL in iPlanet/SunOne?

0 Answers  


What are the SSL formats supported by iPlanet/SunOne?

0 Answers  


What are the configuration files for iPlanet/SunOne?

1 Answers   TCS,


what is swing and jsp. where we use swings and jsp

6 Answers   IBM,


Where can I find the CLI for Web Server 7.0.9 administration?

1 Answers  


Categories