|
-
July 4th, 2009, 03:09 PM
#9
Re: virtual base conceptual questions
Thank you very much for the help.
Yes I missed Copier (1,2,3) while copying the whole code.
But in the first post with the keyword "virtual" there is not normal inheritance since the first object which is created is PoweredDevice. Then the constructors of Printer and Scanner are ignored, and there is not duplicate creation of PoweredDevice.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|