![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
class B { /* */ };
class D1: virtual B { /* */ }; class D2: virtual B { /* */ }; class D3: B { /* */ }; class D4: private B { /* */ }; class D5: virtual public B { /* */ }; class M1: D1, public D2, D3, private D4, virtual D5 { /* i */ }; class M2: D1, D2, virtual D3, virtual D4, virtual D5 { /* */ }; how many times is class B inherited in class M1 and M2\? i understood that virtual public inheritance has priority from virtual private, and that i have: a base class(B), two inherited virtual public(D1, D2), one let's say just public(D3), if i have a 4-th(M) class which inherited public form all of them(D1, D2, D3), this has two subobjects of class B(from D1 and D2) and one from D3, but i don't understand this example which i posted here...please help:D |
| Sponsored links |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| You guys are an attractive bunch of guys and gals.... | motc7 | Lounge | 23 | 07-11-11 14:38 |
| Im new and need your help guys! | Dani*D | Networking | 4 | 02-09-08 03:04 |
| Help me guys please. | lwazugo98 | Malware Removal | 6 | 01-27-08 13:33 |
| can you guys help? | Cartman | Software | 2 | 01-02-06 10:51 |
| Help please guys | MattieC | Software | 1 | 07-26-05 10:04 |