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!
class A {...} A1;
class B: public A {...} B1;
class C: public A {...} C1;
то що буде виведено при виконанні оператора
throw (C1);
а обробка виняткової ситуації записана
catch (B & b) {cout << 1; }
catch (C & c) {cout << 2; }
catch (A & a) {cout << 3; }
catch (...) {cout << 4; }
(C++)
(C++)
(C++)
(C++)
(C++)
(C++)
(C++)
(C++)
(C++)
template <class T > T sum (T * a, T * b)
{T f = 1;
return (* a + * b) - f;
}
int main ()
{Int i = 5, j = 1; double x = 5., y = 6 .;
cout < < sum (& i, & j) < < "" < < sum (& x, & y);
}
(C++)