Как то так
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| #include "stdafx.h"
class Other1
{
};
class Other2
{
};
class Other3
{
};
class ClassBase
{
public:
Other1 o1;
Other2 o2;
Other3 o3;
};
int _tmain(int argc, _TCHAR* argv[])
{
ClassBase CB;
return 0;
} |
|
Здесь Other1 Other2 Other3 вспомогательные классы, независимые от главного. НО это не очень удачный пример, сдесь все классы внутри одного файла.