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
1
Expert's answer
2013-02-26T09:58:23-0500
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.
Comments
Leave a comment