Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!pacbell.com!tandem!wizard.DSG.Tandem.COM!chetan From: chetan@wizard.DSG.Tandem.COM (Chetan Saiya) Newsgroups: comp.lang.c++ Subject: Typo in book by Keith Gorlen, et. al. ? Message-ID: <1990Oct11.175238.24917@tandem.com> Date: 11 Oct 90 17:52:38 GMT Sender: news@tandem.com Reply-To: chetan@wizard.DSG.Tandem.COM (Chetan Saiya) Organization: Tandem Computers, Inc. Lines: 16 Hi: On page 146 (chpt. 8: Programming with the NIH Container Classes) of the book Data Abstraction And Object Oriented Programming in C++, an example is given for the "isKindOf()" function as follows : Point p(0,1); if (p.isKindOf(*Point::desc())) .... YES if (p.isKindOf(*Object::desc())) .... NO ... Shouldn't the last line say YES (or return TRUE), since Point is derived from Object ? Thanks, Chetan