View Single Post
Old 11-24-2007, 10:19 PM   #3 (permalink)
OzOz
Psycho
 
Location: Right here, right now.
Quote:
Originally Posted by spectre
I'm not entirely sure about this, but I think the problem is that you're assuming that "class AA : public A" and "class AAA : public AA" means that "class AAA : public A". I believe that class A's member functions, including constructors, are either private or protected.
My understanding is that public inheritance (as in this case) makes the base class's public and protected members public and protected, respectively, for the derived class as well, so it will carry on down the inheritance chain.
__________________
Maybe you should put some shorts on or something, if you wanna keep fighting evil today.
OzOz is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73