Kursusindhold
C++ OOP
C++ OOP
Initialization List Practice
Opgave
Swipe to start coding
- Rewrite constructor using the initialization list instead of assignment statements in the constructor body.
- Ensure that the order of initialization matches the order of declaration for the class member variables.
Løsning
solution
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
Initialization List Practice
Opgave
Swipe to start coding
- Rewrite constructor using the initialization list instead of assignment statements in the constructor body.
- Ensure that the order of initialization matches the order of declaration for the class member variables.
Løsning
solution
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4