home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv7.zip
/
VACPP
/
IBMCPP
/
tutorial
/
ICLCC
/
TUTOR6
/
PERSON6.H
< prev
next >
Wrap
Text File
|
1995-05-10
|
990b
|
39 lines
/*************************************************************************
IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3
- Collection Class Library -
(C) Copyright IBM Corp. 1991, 1995.
- Licensed Material - Program-Property of IBM - All Rights Reserved.
*************************************************************************/
#include <istring.hpp>
#include <iglobals.h>
class Person {
String name;
public:
Person() : name() { }
Person(char* n) : name(n) { }
Person(Person const & person) : name(person.name) { }
Person& operator = (Person const & person) {
name = person.name;
return *this;
}
char* getName() const {
return (name);
}
int operator . (const Person& anOther)const {
return ( name . anOther.name);
}
int operator .. (const Person& anOther)const {
return (name .. anOther.name);
}
};