Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Initialization List Practice | Constructors and Destructors
C++ OOP
course content

Cursusinhoud

C++ OOP

C++ OOP

1. Fundamentals of OOP in C++
2. Constructors and Destructors
3. Encapsulation Overview
4. Inheritance Overview
5. Polymorphism Overview

book
Initialization List Practice

Taak

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.

Oplossing

cpp

solution

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 4
toggle bottom row

book
Initialization List Practice

Taak

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.

Oplossing

cpp

solution

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 4
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt