Abstract Classes and Virtual Procedures
If you’re using Microsoft Word to edit your documents, you already know how document templates work. That means you also pretty much know what abstract classes are. Document templates in Word are used to define formatting rules for documents.
When I’m writing a normal paragraph for this book, the document template I’m using specifies that the font is “Segoe” and the font size is 9.5 points. A document created based on a document template is formatted according to the template’s properties. Using a template is the only convenient way to ensure that all chapters in a book are formatted consistently.
Abstract classes work similarly; they provide prototypes of procedures, but these procedures serve exclusively ...