✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Dado el siguiente código, señala la respuesta correcta:
1#include <iostream>2class C {3public:4 C(int i = 0, bool al = false): n{i}, hayAlerta{al} {}5 void mostrar() const {6 if (hayAlerta) alerta();7 std::cout << "i = " << n << std::endl;8 }9private:10 int n;11 bool hayAlerta;12 void alerta() { std::cout << "Alerta " << std::endl; }13}; 14int main() { const C c; c.mostrar(); }