Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Possible duplicate of How is "=default" different from "{}" for default constructor and destructor? Commented May 9, 2018 at 8:27
  • That is a good thread but I am mostly interested in the behaviour when the class is derived. Commented May 9, 2018 at 8:29
  • Yes compiler will generate one for you. What are you worried about? Commented May 9, 2018 at 8:29
  • I am worried if the base class constructor will be called and the class instance will be initialized correctly Commented May 9, 2018 at 8:30
  • This article may help you :) learncpp.com/cpp-tutorial/… Commented May 9, 2018 at 8:36