What Is A Default Constructor in C++ ?
Answer / Bhawana Tripathi
A Default Constructor in C++ is a constructor that has no parameters and can be used to create default instances of a class when no other constructors are called. If not explicitly defined, the compiler will automatically generate a default constructor for a class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is conversion constructor in C++
What's the value of the expression 5["abxdef"]?
What is the difference between creating an object, using 'new' and using 'malloc'?
What is a class in C++?
2 Answers Amazon, TCS, UGC Corporation,
explain the term 'resource acquisition is initialization'?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
Can we call a virtual function from a constructor?
Define an Abstract class in C++?
What is Copy Constructor?
What is C++11?
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
Briefly explain various access specifiers in C++.