Search⌘ K

Summary of Class Data Members

Let's review all of the knowledge from all lessons.

We'll cover the following...

Summary

In this course, we covered how Modern C++ simplified the initialization of data members.

First, we took a quick glance at constructors to see their different versions and how to streamline code with inherited or delegating constructors from C++11.

Later, we progressed to another valuable feature from C++11, non-static data member initialization, NSDMI. You can now declare a member variable and initialize it with a default value. The initialization will happen before each constructor body is ...