What is a Default constructor?
Answer / munendra kumar
A constructor that has no arguments.
If you don't code one, the compiler provides one if there are no other constructors. If you are going to instantiate an array of objects of the class, the class must have a default constructor.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does std mean in c++?
What is do..while loops structure?
in C++ , the word plus plus who found this?
Definition of class?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What are the weaknesses of C++?
Do you know about C++ 11 standard?
0 Answers Agilent, ZS Associates,
Array base access faster or pointer base access is faster?
What does I ++ mean in c++?
What is the difference between #import and #include in c++?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What is a dangling pointer?