what is the difference between "struct" and "class"?

C

Christian Meier

XiongBin said:
anybody who tell me: what is the difference between "struct" and
"class"?
:)

Except the default access public/private, the default inheritance is
different, too. For structs the default inheritance is public, for classes
it is private. IIRC this is not written in the FAQ.

Greetings Chris
 
F

Ferdi Smit

XiongBin said:
anybody who tell me: what is the difference between "struct" and
"class"?
:)

Another tiny issue is that you can only use the keyword class in a
template template parameter, and not struct. But then we're speaking of
keyword, and not an actual entity.

--
Regards,

Ferdi Smit (M.Sc.)
Email: (e-mail address removed)
Room: C0.07 Phone: 4229
INS3 Visualization and 3D Interfaces
CWI Amsterdam, The Netherlands
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top