Author: Dan Andersson
Date: 14:56:48 09/22/03
Go up one level in this thread
I wouldn't see polymorphism as a prerequisite for Object Oriented Design. But for OOP I would argue it is essential. Continuing on the OOP thread with one contrived example: You could use any one of Parametric, Ad-hoc or Subtyping polymorphism when making/unmaking moves since some moves are multi moves like castling,. e.p and promotion. I realise that this can easily be implemented by making a generic data structure that contains all neccessary information. But it's late :) MvH Dan Andersson
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.