logo

Crowdly

Browser

Add to Chrome

Язык С++. Что будет напечатано в результате исполнения следующего кода? # in...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Язык С++. Что будет напечатано в результате исполнения следующего кода?

#include <iostream>

class

A{

public

:

virtual void get()

{

std::cout << 'A'

;

}

};

class B: public

A{

public

:

void get()

{

std::cout << 'B'

;

}

};

class C: public

B{

public

:

void get()

{

std::cout << 'C'

;

}

};

int main()

{

A* obj =

new

C;

obj->get();

}

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.cfuv.ru?

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

Browser

Add to Chrome