what is costructor?



what is costructor?..

Answer / dipraj shahane

Constructor is special member function of class which having
same name as Class name and no return type. Main function of
Constructor is to initialize (give default values to member
variable of class object) object. Constructor gets invoke
when you create new object by following syntax.

ClassName objectName = new ClassName();

Is This Answer Correct ?    22 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the difference between procedural programming and oops?

0 Answers  


What does the keyword "static" mean?

4 Answers   TCS,


Write a c++ program to display pass and fail for three student using static member function

0 Answers  


What is oops in programming?

0 Answers  


what is function over loading?

5 Answers  






What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


can you give real time example for polymarphism

5 Answers   TCS,


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


Write a macro for swapping integers

5 Answers  


What is multiple inheritance?

9 Answers   TCS,


Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}

1 Answers   Wipro,


what is a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


Categories