Re: pointer to structure?

From: Jacques Labuschagne (jacques_at_clawshrimp.com)
Date: 10/20/04


Date: Wed, 20 Oct 2004 18:52:27 +1300

Rob Williscroft wrote:
> Yes.
>
> There is only *one* difference between struct's and class's and that's
> that members of class's are private by default and members of struct's
> are public by default.
>

And that

   struct A{};
   struct B: A{};

is the same as

   struct A{};
   struct B: public A{};

while

   class C{};
   class D: C{};

is equivalent to

   class C{};
   class D: private C{};

Regards,
Jacques.



Relevant Pages