C/C++
cppclass.asc
Associated article: Designing C++ Classes
Tags: C/C++
_DESIGNING C++ CLASSES_
by Steven Sinofsky
[EXAMPLE 1]
class CBase {
public:
CBase(); // user-supplied constructor
~CBase(); // user-supplied destructor
// other functions and variables
};
class CMyClass : public CBase {
public:
CMyClass(); // user-supplied constructor
~CMyClass(); // user-supplied destructor
// other functions and variables
};
void main() {
CBase* pBase = new ...


