Код: Выделить всё
#include "iostream"
#include "string"
using namespace std;
class base{
//public:
int a;
double b;
void * c;
char d;
};
class c1 : base{
//public:
int a;
};
int main() {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79337925/privacy-property-of-inherited-members-affects-overall-size-of-class[/url]
Мобильная версия