|
-
May 13th, 2008, 05:32 AM
#2
Re: Protected Virtual destructors Q.
Someone told me that declaring the destructor for A protected prevents inheritance at compile time... but wouldn't that disallow the object to be created altogether?
It does not prevent inheritance but it does prevent the creation of objects of type A.
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
|