Struct and inheritance

H

HenryTseung

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
 
H

Howard

HenryTseung said:
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
 
B

Bob Hairgrove

Two questions,
1) Is it possible to use struct with inheritance especially in a C
(not C++) program ?

There is no inheritance in C.
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++.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top