logo

Crowdly

Browser

Add to Chrome

Об'єктно-орієнтоване програмування [02539]

Looking for Об'єктно-орієнтоване програмування [02539] test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування [02539] at vns.lpnu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Статичні змінні класу досяжні всім об’єктам даного класу.
100%
0%
View this question
Що позначає ключове слово throw?
0%
0%
0%
0%
100%
View this question
Чи буде викликана функція myfunc у коді нижче?

if (expressionA && myfunc(b))

{

do_something();

}

0%
0%
100%
0%
View this question
Відкриті (public) члени класу доступні: 
0%
0%
0%
View this question

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

#include <iostream>

class CDemo{public:    CDemo() { std::cout << "Constructor\n"; }    ~CDemo() noexcept { std::cout << "Destructor\n"; }};

int main(){    CDemo firstObject;    {        CDemo secondObject;    }    CDemo thirdObject;

    return 0;}

0%
0%
100%
0%
View this question

Виберіть ключові слова мови С++, що використовуються для роботи з винятками (exceptions).

0%
0%
0%
0%
0%
View this question

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

#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;}

0%
0%
0%
100%
0%
View this question

Вставте пропущене слово в тексті нижче:

"У контексті C++, ... - це абстрактний клас, який містить лише чисто віртуальні функції та деструктор."

0%
0%
0%
0%
0%
View this question
Оператор new у коді поданому нижче видаляє об'єкт з динамічної пам'яті.

Book *pR = new Book;

0%
100%
View this question
Чи можуть бути вкладеними блоки try?
0%
0%
0%
0%
100%
View this question

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