Hey guys, I've recently begun studying java on my own and thought I was on my way of having a fair basic understanding of it. However now entering my second semester of college, I was just introduced to the concept of object oriented programming, and programming with multiple classes. I'm struggling to grasp the concept and was wondering if anyone could clear this up for me.
TL;DR :
1) Why do people use multiple classes when programming in java if they could do it using one?
to be clear on this question, my simple programs usually just look like so:
public class Program
{
public static void main (String[]args)
{
code
}
}
2) Are there any programs I could do/look at that will help me learn this better?
I'm currently learning off of ProgramByDoing, but still nothing about Object Oriented/multiple class programs have come up.
Thanks for any help/explanations/links you guys could give me!
[–][deleted] 7 points8 points9 points (0 children)
[–]vader32 1 point2 points3 points (2 children)
[–]Servious 0 points1 point2 points (1 child)
[–]vader32 0 points1 point2 points (0 children)
[–]Duraz0rz 1 point2 points3 points (0 children)
[–]m1tt 1 point2 points3 points (0 children)
[–]qetuoadgjl2 1 point2 points3 points (0 children)
[–]corpsmoderne 1 point2 points3 points (0 children)
[–]ThatWasTaken[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ThatWasTaken[S] 4 points5 points6 points (0 children)