Post #1654 • March 5, 2014, 3:50 PM
It was a fair question. Yes, the student said, he understands how to use object-oriented programming. The question is, why?
The answer is that OO can make your life easier once the problem in front of you takes on a certain level of complexity. Consider, for instance, the implementation of a two-player game of go-moku. How would you go about tracking the activity of two colors of stones on a 13 x 13 board, represented in the browser? The answer is here.