Wednesday, March 24, 2010

Abstract Classes

Besides pure virtual functions, another way to make a class abstract is to make the constructors protected.

Reference: Pattern Hatching: Design Patterns Applied by John Vlissides, Addison-Wesley, 1998., p. 113.

No comments:

Post a Comment