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 | 58885c244c2b9625d0917797dedd3850bf07ae53 (patch) | |
| tree | 908b09f5dcb348b48d193ce522dc73927d66ed2c /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 |
