✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який буде вивід програми, текст якої подано нижче:
#include <iostream>class CData {public: explicit CData(size_t value): m_count(value) {} size_t GetCount() { return m_count; } void IncrementCountBy(size_t value) { m_count += value; }private: size_t m_count;};int main(){ CData firstObject(0); firstObject.IncrementCountBy(5); CData secondObject(5); secondObject.IncrementCountBy(10); std::cout << firstObject.GetCount() << '\n'; return 0;}