C++ Tutorial: An array of objects // how to create, initialize, and access [8]

preview_player
Показать описание
In this video we discuss arrays of objects. Specifically, we discuss how to create, initialize, and access arrays made of objects. Topics include syntax, the use of initialization lists to initialize the objects and their impacts on constructors, and finish with combining array notation and the dot operator to use the objects.

An example program is written to walk you through how all of this is done.

// Check out my complete C++ videos playlist:

// Consider supporting this channel in multiple ways
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Dogecoin: DRK2HDp3ZkkbFpvGZnVgMVosnBhPv8r3uP
Рекомендации по теме
Комментарии
Автор

Nice I didn't know you could init an array like this. Interesting. Thanks Professor Hank.

rfdave
Автор

Thanks for video
Do you have a video explaining the Dynamic array of "pointers to objects" and how to initialize them and dereference them? That confuses me a lot. 👍

mahdavimail
Автор

What if you need global array + you don't know the size of array, because it changes throughout the program?

arek
Автор

Professor do not stop doing what you do. I have had many computer programming professors and of them all only one has been good, juts because one dominates a subject does not mean one should necesarily teach. This channel is very overrated.

hectorpagan