diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
| commit | 7ead5b7a9ea99a3e0f1459187b3262f7054f0126 (patch) | |
| tree | 17e082a745fd1bae8af5b8b1682c3a2ff94769c8 /name.h | |
Diffstat (limited to 'name.h')
| -rw-r--r-- | name.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -0,0 +1,28 @@ +// class name declaration. + +#ifndef NAME_H +#define NAME_H + +#include "incl.h" + +using namespace std; + +class name +{ +protected: + // private members: + string s_name; // object's name. + +public: + virtual string get_name ( ) const; + virtual void set_name ( string s_name ); + + + // public methods: + explicit name( ) { }; // a standard constructor. + explicit name( string s_name ); // a standard constructor. + ~name( ); + +}; + +#endif |
