TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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?
Reply
Answers (
1
)
MVP Design Pattern
design help