Throughout this course, you will learn all the options to initialize data members in C++ using a simpler syntax and safer code. More specifically, in this mini course you will learn non-static data member initialization, inline variables, designated initializers, and more. Additionally, you’ll see the changes and new techniques from C++11 to C++20 to really round out your understanding.
Throughout this course, you will learn all the options to initialize data members in C++ using a simpler syntax and safer code. ...Show More
WHAT YOU'LL LEARN
Understand initialization order of data members
Learn all the essential features of Modern C++, including non-static data member initialization and inline variables
See the latest features of C++17 and C++20 like inline variables and designated initializers
Understand initialization order of data members
Show more
Content
About the CourseThe Basics of Class Data MembersInitialization With ConstructorsCopy and Move ConstructorsDelegating ConstructorsInheriting Constructors and QuizNon-Static Data Members Initialization in C++11NSDMI: Copy and Move ConstructorsC++14 and C++20 Updates to NSDMINSDMI: Advantages and DisadvantagesNSDMI: ExercisesStatic Inline Variables in C++17Designated Initializers in C++20Limitations of New FeaturesSummary of Class Data Members✏️ The Final QuizAppendix: Resources and Links
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources