C++ - struct vs. class -


possible duplicates:
c/c++ struct vs class
what pod types in c++?

hi,

in c++ in nutshell book, in chapter 6: classes, unders access specifiers, mentioned following:

in class definition, default access members , base classes private. in struct definition, default public. that difference between class , struct, although convention, programmers use struct pod classes , use class all other classes.

my questions here are:

  • isn't there difference between classes , structs in structs don't hold functions , hold data?
  • what pod classes? and, meant other classes here? there special classes?

thanks.

the other difference that

template<class t> ... 

is allowed, but

template<struct t> ... 

is not.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -