␡
- The Takeaway
- Document Management
- The Base Class: AnyOldDocument
- Economy in Coding
- The First Document Type: A Memo
- The Second Document Typean Invoice
- The Third and Last Document Typea Contract
- Leveraging Base Class Generality
- Polymorphism
- Complete Program Output
- Make Your Destructors Virtual
- Conclusion
- Additional Reading
Like this article? We recommend
Document Management
Running a business nowadays seems to be all about documents—the bureaucrats are winning the war against forests! Required documents include the following (among others):
- Memos
- Invoices
- Contracts
- Nondisclosure agreements
- Pay slips
- Tax forms
- Social Security forms
- Accounting forms
- Web site code
- User manuals
- Quality system documents
- Design documents
- Source code
These documents are threaded through the various workflows in the divisions and departments of modern enterprises. In this article, I look at a document management system that uses inheritance to model some of these documents. To begin with, let’s look at the basic document type in a class called AnyOldDocument.