Why is it good to split a program into multiple classes?
Posted
by
user1276078
on Programmers
See other posts from Programmers
or by user1276078
Published on 2012-06-26T00:40:55Z
Indexed on
2012/06/26
3:23 UTC
Read the original article
Hit count: 193
I'm still a student in high school (entering 10th grade), and I have yet to take an actual computer course in school. Everything I've done so far is through books. Those books have taught me concepts such as inheritance, but how does splitting a program into multiple classes help? The books never told me.
I'm asking this mainly because of a recent project. It's an arcade video game, sort of like a flash game as some people have said (although I have no idea what a flash game is). The thing is, it's only one class. It works perfectly fine (a little occasional lag however) with just one class. So, I'm just asking how splitting it into multiple classes would help it.
This project was in JAVA and I am the only person working on it, for the record.
© Programmers or respective owner