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++)
{
public:
static char * country;
static const int version = 5;
static short buid_num = 2223;
static char * name;
static long long date;
};
Program prog;
]]> Які оголошення і звернення до членів класу і об'єкту prog, типу Program в файлі sample.cpp коректні?
(C++)
(C++)
class Rectangle
{
public:
int a, b;
int sum ();
int square ();
~ Rect ();
};
(C++)
class A
{
int x;
};
Відзначте коректний варіант звернення і використання класу A :
(C++)
(C++)
(C++)
class SomeClass
{
int x;
public:
SomeClass (int xx): x (xx) { };
};
SomeClass x (10);
SomeClass y (x);
(C++)
(C++)
(C++)