Monday, October 11, 2010

Protocol Classes

Protocol classes (aka Interface Classes) contain only pure virtual functions and no data members.

You can add data members, and the compiler will not complain, but this will not be a typical protocol class.

Reference: More Exceptional C++ by Herb Sutter. Addison-Wesley, 2002., p. 158.

No comments:

Post a Comment