Sean's Note: [C/C++] structure and class

2010年10月17日 星期日

[C/C++] structure and class

Class is equal to structure plus member function, but a C++ structure can do any thing a class can do!
Only their default access level are different.
Structure's fields are public by default.
Class fields are private by default.

沒有留言:

張貼留言