Why default keyword c++?

It’s a new C++11 feature. It means that you want to use the compiler-generated version of that function, so you don’t need to specify a body . You can also use = delete to specify that you don’t want the compiler to generate that function automatically.9 Mar 2016

Read more

What is an empty constructor in C++?

Answer: C++ Empty constructor necessity depends upon class design requirements. We know that C++ class constructor is called when we create an object of a class. If a class is not required to initialize its data member or does not contain data member, there is no need to write empty constructor explicitly .10 Eki 2016

Read more