Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!enea!helios!kim From: kim@helios.enea.se (Kim Wald`n) Newsgroups: comp.object Subject: Re: complex number example Message-ID: Date: 2 Feb 90 19:38:27 GMT References: <2904@tukki.jyu.fi> Sender: kim@enea.se Organization: Enea Data AB, Sweden Lines: 15 In-reply-to: sakkinen@tukki.jyu.fi's message of 1 Feb 90 13:01:30 GMT In article <2904@tukki.jyu.fi> sakkinen@tukki.jyu.fi (Markku Sakkinen) writes: > I have read in some book or article an example in which a Complex object > (implementing complex numbers) contained both the Cartesian > and the polar representation and a validity indicator for each: > at every moment, at least one representation must be valid, > and even both can be. If memory serves, it was a well-done example. > The only problem is that I don't remember where it was. You probably refer to the example in Bertrand Meyers "Object-Oriented Software Construction", pp. 136-139. -- Kim Walden Enea Data, Sweden kim@enea.se