summaryrefslogtreecommitdiff
path: root/name.h
diff options
context:
space:
mode:
Diffstat (limited to 'name.h')
-rwxr-xr-x[-rw-r--r--]name.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/name.h b/name.h
index 0293e2b..b895389 100644..100755
--- a/name.h
+++ b/name.h
@@ -7,23 +7,21 @@
using namespace std;
-class name
+class name
{
protected:
- // private members:
- string s_name; // object's name.
-
+ // private members:
+ string s_name; // object's name.
+
public:
- virtual string get_name ( ) const;
- virtual void set_name ( string s_name );
+ 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( );
+ // public methods:
+ explicit name( ) { }; // a standard constructor.
+ explicit name( string s_name ); // a standard constructor.
+ ~name( );
};