Re: pointer to structure?
From: Jacques Labuschagne (jacques_at_clawshrimp.com)
Date: 10/20/04
- Next message: John Harrison: "Re: Callbacks"
- Previous message: David Casey: "Re: Reading specific memory address into variable"
- In reply to: Rob Williscroft: "Re: pointer to structure?"
- Next in thread: Ron Natalie: "Re: pointer to structure?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: John Harrison: "Re: Callbacks"
- Previous message: David Casey: "Re: Reading specific memory address into variable"
- In reply to: Rob Williscroft: "Re: pointer to structure?"
- Next in thread: Ron Natalie: "Re: pointer to structure?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|