///////////////////////////////////////////////////////////////////// // Document.h - implements the common interface for the factory // // method to create objects ver 1.0 // // Language: Visual C++ 2008 // // Platform: Sony Vaio, Intel Core 2 Duo // // Application: Demonstrating Factory Method Pattern // // Author: Anjan Kumar, Bollam , CSE // ///////////////////////////////////////////////////////////////////// #ifndef DOCUMENT_H #define DOCUMENT_H #include #include using std::string; class Document{ public: Document(){}; Document(std::string docName):_docName(docName){}; virtual void Open() = 0; virtual void Close() = 0; virtual ~Document(){}; private: std::string _docName; }; #endif