What is Constructor

Answers were Sorted based on User's Feedback



What is Constructor..

Answer / biswajit rout

Constructor is a special type of member function which
never returns any value.It is mainlly used for
initilazation of data member(s).It can only invoked by the
creation of the object of the respective class.constructor
can very well use AccessSpecifier.
constructor can very well overloaded but it can not be
overridden.

Is This Answer Correct ?    1 Yes 0 No

What is Constructor..

Answer / dipankar gain

constructor is just like a method(a function in C/C++) which
is called before the object of the class is created.
Generally you dont need to give the constructor in the class
definition but if you want to do something like initializing
variables, starting a connection, connect to the database,
then you should use the constructors.
If you dont include the constructor in your class, then the
java compiler puts it for you, its called the default
constructor.

Is This Answer Correct ?    0 Yes 0 No

What is Constructor..

Answer / ada

Constructor creates an object and initializes it. It also
creates vtable for virtual functions. It's different from
other methods in a class.

Is This Answer Correct ?    17 Yes 22 No

What is Constructor..

Answer / raj

contructor is construct which is construct
something................

Is This Answer Correct ?    6 Yes 16 No

Post New Answer

More STL Interview Questions

Write a program in C++ returning starting locations of a substring using pointers

1 Answers  


write a program to demonstrate,how constructor and deconstructor work under multilevel inheritance

3 Answers   TCS,


what is electronic software

1 Answers  


what is the difference between thread and process

1 Answers   Infosys,


what is c++

2 Answers  






wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value

1 Answers  


Is stl open source?

0 Answers  


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

0 Answers  


tell about sorted linked list

1 Answers  


how to overload << and >> operator in c++

3 Answers   Wipro,


What is stl stack?

0 Answers  


WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

1 Answers   Syntel,


Categories