Re: How much oop is too much oop?
- From: "Nemanja Trifunovic" <ntrifunovic@xxxxxxxxxxx>
- Date: 25 Apr 2005 16:55:02 -0700
> Example consider a world with 4 shapes: round, square, triangular
and irregular with the last being anything other than the first
three
a.isRound() a.isSquare() a.isTriangular() may need the internal
representation but a.isIrregular() will just return true if all the
others are false.
Virtual functions were invented exactly to make functions like
isWhatever() unnecessary.
.
- Follow-Ups:
- Re: How much oop is too much oop?
- From: David Webber
- Re: How much oop is too much oop?
- References:
- How much oop is too much oop?
- From: ben
- Re: How much oop is too much oop?
- From: Gene Bushuyev
- Re: How much oop is too much oop?
- From: David Webber
- How much oop is too much oop?
- Prev by Date: Re: How much oop is too much oop?
- Next by Date: What is a union?
- Previous by thread: Re: How much oop is too much oop?
- Next by thread: Re: How much oop is too much oop?
- Index(es):
Relevant Pages
|