logo

Crowdly

Browser

Add to Chrome

Програмування

Looking for Програмування test answers and solutions? Browse our comprehensive collection of verified answers for Програмування at exam.nuwm.edu.ua.

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

При такому наслідуванні всі відкриті члени базового класу у похідному стануть:

class Figure {

public:

int a, b;

Figure(){a=0; b=0;};

};

class Circle: public Figure {

   public:

   float r;

};

View this question

У випадку private-наслідування всі public-члени класу в базовому класі стануть:

0%
0%
0%
0%
View this question

Що таке "чистий віртуальний метод" в C++?

View this question

Виберіть з наведеного прототип суто віртуальної функції:

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

У випадку protected-наслідування всі public-члени класу в базовому класі стануть:

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

Множина відкритих методів класу називається:

View this question

Для перевизначення операції декременту необхідно перевантажити операторну функцію:

View this question

Задано ієрархію класів:

#include <iostream>

class Figure {

public:

int x, y;

Figure(){x=1; y=1;};

};

class Circle: public Figure {

public:

float r;

Circle(float rr){r=rr;}

};

int main() {

Circle c1(5);

std::cout << c1.x <<","<< c1.y<<"," << c1.r;

return 0;

}

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

View this question

До спеціальних методів класу в С++ належать:

View this question

Для обробки вняткових ситуацій використовують оператори:

View this question

Want instant access to all verified answers on exam.nuwm.edu.ua?

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

Browser

Add to Chrome