C++ Initialization Lists explained

Опубликовано: 19 Август 2026
на канале: Brian MalloyOn
19,803
306

This video explains what an initialization list is and how they work in C++ constructors. The video does not explain why we should prefer them; that will be explained in a subsequent video. At 4 minutes and 20 seconds into the video I explain why you must order the attributes in the initialization list in the same order that they are declared and I explain what can happen if you initialize in the wrong order.