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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment