Initialization List Practice
Tarea
Swipe to start coding
You are working with a class that requires proper initialization of its member variables.
- Rewrite the constructor using an initialization list instead of assigning values inside the constructor body.
- Make sure the initialization order follows the order in which the member variables are declared in the class.
Solución
solution
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 4