| View previous topic :: View next topic |
| Author |
Message |
HenryTseung Guest
|
Posted: Mon Jun 28, 2004 9:22 am Post subject: Struct and inheritance |
|
|
Two questions,
1) Is it possible to use struct with inheritance especially in a C
(not C++) program ?
2) What should I do to make some member operations in struct private ?
Thanks in advance for any help
|
|
| Back to top |
|
 |
Vince Yuan Guest
|
Posted: Mon Jun 28, 2004 9:47 am Post subject: Re: Struct and inheritance |
|
|
1) no
2) private:
Vince
"HenryTseung" <abc_at_abc (AT) yahoo (DOT) co.jp> wrote
| Quote: | Two questions,
1) Is it possible to use struct with inheritance especially in a C
(not C++) program ?
2) What should I do to make some member operations in struct private ?
Thanks in advance for any help
|
|
|
| Back to top |
|
 |
Howard Guest
|
Posted: Mon Jun 28, 2004 3:52 pm Post subject: Re: Struct and inheritance |
|
|
"HenryTseung" <abc_at_abc (AT) yahoo (DOT) co.jp> wrote
| Quote: | Two questions,
1) Is it possible to use struct with inheritance especially in a C
(not C++) program ?
2) What should I do to make some member operations in struct private ?
Thanks in advance for any help
|
Shouldn't you ask in the comp.lang.c newsgroup, if what you want is an
answer about C???
-Howard
|
|
| Back to top |
|
 |
Bob Hairgrove Guest
|
Posted: Mon Jun 28, 2004 3:59 pm Post subject: Re: Struct and inheritance |
|
|
On 28 Jun 2004 02:22:18 -0700, [email]abc_at_abc (AT) yahoo (DOT) co.jp[/email] (HenryTseung)
wrote:
| Quote: | Two questions,
1) Is it possible to use struct with inheritance especially in a C
(not C++) program ?
|
There is no inheritance in C.
| Quote: | 2) What should I do to make some member operations in struct private ?
Thanks in advance for any help
|
In C or C++?
(For C questions, please post at comp.lang.c and NOT to
comp.lang.c++.)
--
Bob Hairgrove
[email]NoSpamPlease (AT) Home (DOT) com[/email]
|
|
| Back to top |
|
 |
|