schmintan

schmintan

  • NA
  • 64
  • 0

OO Pong - need help designing

Mar 26 2010 1:41 PM

hi Folks.

Been a loong time since I had to do any OO programming so letting myself back into it gently by trying to write an object oriented version of pong.
I have a Toy class. Ball and Paddle will be sub classes(inherit) the toy class.
I need to implement a draw method. As a paddle is very different from a ball, im wondering if i should have the draw method in the Toy class at all.
Should the draw method be specified in an interface, forcing the ball and paddle to implement their own draw methods?

Answers (1)