summaryrefslogtreecommitdiff
path: root/name.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:18:08 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:18:08 +0000
commit58885c244c2b9625d0917797dedd3850bf07ae53 (patch)
tree908b09f5dcb348b48d193ce522dc73927d66ed2c /name.h
Diffstat (limited to 'name.h')
-rw-r--r--name.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/name.h b/name.h
new file mode 100644
index 0000000..b895389
--- /dev/null
+++ b/name.h
@@ -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