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 |
Write a program using display() function which takes two arguments.
What are the uses of pointers?
Can notepad ++ run c++?
Explain all the C++ concepts using examples.
What is static function and static class?
What is a constant? Explain with an example.
why can't we declare data member of class auto register or extern
Define namespace in c++?
How do you initialize a class member, class x { const int i; };
Should you pass exceptions by value or by reference?
What is a literal in c++?
What is a buffer c++?