logo

Crowdly

Browser

Add to Chrome

Яким буде вивід програми, текст якої подано нижче: #include <iostream> class ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Яким буде вивід програми, текст якої подано нижче:

#include <iostream>

class CData {public:    static size_t GetCount() { return m_count; }    static void IncrementCountBy(size_t value) { m_count += value; }

private:    static size_t m_count;};

size_t CData::m_count = 0;

int main(){    CData firstObject;    firstObject.IncrementCountBy(5);

    CData secondObject;    secondObject.IncrementCountBy(10);        std::cout << CData::GetCount() << '\n';    return 0;}

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

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome