Looking for Об'єктно-орієнтоване програмування (1 курс КН) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (1 курс КН) at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
(C++)
int a;
void A () {static int a = 4; };
};
Який буде результат виконання cout << a::A::a; в функції main ?
(C++)
monstr Super (200, 300), Vasia (50), Z;
monstr X = monstr (1000);
monstr Y = 500;
(C++)
class A { public: int a,b,c;}; A obj;
Як звернутися до змінної с ?
(C++)
(C++)
(C++)
(C++)
(C++)
1: class A
2: {public: void f1 (int & a) {val + = a ++;}; // val ініціалізується в конструкторі 3: int const f2 () {return val + 1;}; 4: int val; A():val(0)5: void f3 (int f, const char ch);
6:} A1;
7: void A :: f3 (int f, const char ch) {8: int d = 5;
9: f1 (* d);
10: f2 ();11:}
(C++)
Технологія ООП в порівнянні з традиційною дозволяє створювати:
(C++)