logo

Crowdly

Browser

Add to Chrome

Dado el siguiente código, señala la respuesta correcta: 1 #include <iostrea...

✅ 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(); }

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on av03-25-26.uca.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome