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 are the four main oops concepts?

1 Answers  


difine hierarchical inheritance.

9 Answers   ASD Lab, TCS,


Can abstract class have normal methods?

0 Answers  


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


what are the ways in which a constructors can be called?

0 Answers  






sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


Name a typical usage of polymorphism

3 Answers  


What is public, protected, private?

6 Answers   IBS, Satyam,


how do you handle yourself when you feel the wald is aganist you

2 Answers  


Please send ford technologies placement paper 2 my mail id

0 Answers  


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


Categories