Object-Oriented alternative to switch statements?
Not long ago, an application I sent in hope of getting an internship as a programmer has been rejected. Among the issues they listed with the program I made for their test assignment was "Use of switch statements instead of an object-oriented approach".
This doesn't make any sense to me - either I'm missing something which should be obvious, or I really don't know what that is supposed to be. Can someone enlighten me?
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
|