I figure I'm strong in C, but this C++ sometimes leaves
me baffled.
I'm looking at a class definition with a method
declared twice. With the only difference, the word const.
Can you tell me why or whats going on and why I would do this?
class name:public other {
public:
virtual bool isOpen() const;
virtual bool isOpen (void);
protected:
bool localOpen;
};
bool name::isOpen (void) const {
return localOpen;
}
bool name::isOpen (void) {
return localOpen;
}
_______________________________________________
Keven Miller [log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *