MajorGeeks Support Forums IOBit Software

Go Back   MajorGeeks Support Forums > Majorgeeks.Com - Support Forums > Programming
Register FAQ Members List Calendar Casino Mark Forums Read

Programming Place to discuss programming including HTML, Java, C++, MySQL and others.


Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-12, 16:14
skyler43@123's Avatar
skyler43@123 skyler43@123 is offline
Private E-2
 
Join Date: Feb 2012
Location: Bucharest
Posts: 19
Thanks: 2
Thanked 2 Times in 2 Posts
Default need help guys

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
Reply With Quote
Sponsored links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 20:02.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Microsoft | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|

-->
Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger