List the special characteristics of constructor.



List the special characteristics of constructor...

Answer / Arunesh Kumar Kaushik

Special characteristics of constructors are: they have the same name as the class, they do not have a return type (except for constructor templates), they can be overloaded, they are automatically called when an object is created, and they can initialize member variables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write a program using display() function which takes two arguments.

1 Answers  


What are the uses of pointers?

1 Answers  


Can notepad ++ run c++?

1 Answers  


Explain all the C++ concepts using examples.

1 Answers   InterGraph,


What is static function and static class?

4 Answers   HCL,


What is a constant? Explain with an example.

1 Answers  


why can't we declare data member of class auto register or extern

1 Answers  


Define namespace in c++?

1 Answers  


How do you initialize a class member, class x { const int i; };

8 Answers   emc2,


Should you pass exceptions by value or by reference?

1 Answers  


What is a literal in c++?

1 Answers  


What is a buffer c++?

1 Answers  


Categories