|
-
March 17th, 2003, 03:33 PM
#5
Originally posted by I know, I know
By default all functions are declared private. You do not have the public decleration until below your constructor and destructor. I am not sure why you would ever want your constructor private, I can understand protected but not private. If you are going to use class A as just a parent class declare the constructor protected, but I think the destructor has to always be public.
It is a bug in VC 6.0 that has been fixed in V 7.0.
Also, destructors can be private -- implementations of singleton patterns make use of private destructors.
Regards,
Paul McKenzie
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
|