Answer to Question #25028 in Java | JSP | JSF for HLy
I am new to JAVA ! When I am going to write a program , how can I decide how many Class I have to create ? And how can I know what members , method in each class ? What the purpose of MAIN CLASS How can Classes as well as methods connected to run my program ? With C++ before , I usually write code only on one main screen with all variables together. Thank you
It depends how the programfits inside your head. If you see it requiring four classes, then that's how many you should use. Just make sure that your classes aren't doing too much- small is generally better with methods and classes.