I think i might be being blinded by the way I’ve learned OO principles. Its always taught in the manner of tangible object is a descendant of another tangible object. Anyway…
I’m trying to work out an OO approach to a conversion utility, basically it will read a text file and based on the first word(s) on the line it will go off and translate / do whatever corresponds. Would this be a case of each command is a new object or…
Its probably a simple answer but I’m struggling
Take a look at the Interpreter, and the Factory Method patterns.