logo

Crowdly

Browser

Add to Chrome

Об'єктно-орієнтоване програмування (1 курс КН)

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++)

0%
0%
0%
0%
View this question
Виберіть правильне твердження.

class A { };

class B: public А

{ };

(C++)

0%
0%
0%
0%
View this question
Виберіть правильні твердження.

(C++)

0%
0%
0%
0%
View this question
Вкажіть яку з виразів буде правильним?

class A

{public: int a, b;

protected: int z;

private: short i; } A1;

class B: public A

{public: int c, d;

private: int k;} B1;

(C++)

View this question
Керуючись наведеним кодом, визначте, до яких змінним можна звертатися з класу Friend :

class Base

{

int b;

protected: int c;

public: int d;

};

class Derived: Base

{

friend class Friend;

int e;

};

class Friend

{

Derived derived;

};

(C++)

View this question
За допомогою механізму friend можна дозволити звернення до внутрішніх елементів класу:

(C++)

0%
0%
0%
View this question
Керуючись наведеним кодом, визначте, до яких змінним можна звертатися з класу Friend :

class Base

{

public: int a;

protected: int b;

private: int c;

};

class Derived: Base

{

friend class Friend;

int d;

};

class Friend

{

Derived derived;

};

(C++)

View this question
Який результат буде у наступного виразу?

class A

{CountPass ();

private: short i;

} A1;

friend A :: CountPass ()

{A1.i = 23;}

(C++)

0%
0%
0%
View this question
Керуючись наведеним кодом, визначте, до яких змінним можна звертатися з класу Friend :

class Base

{

int a;

public: int b;

protected: int c;

};

class Derived: Base

{

friend class Friend;

int d;

};

class Friend

{

Derived derived;

};

(C++)

View this question

Що буде виведено в результаті

double x = 12.4;

cout << setw ~ << x << setw(7) << setfill ( '*') << "" << endl;

(C++)

View this question

Want instant access to all verified answers on moodle.chnu.edu.ua?

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

Browser

Add to Chrome