+ 1
can you help me understand classes?
5 Respuestas
+ 2
Seungyoon, i think i understand your question. So asuming you have eclipse (if you do, follow along)
open it up. Now after you find a workplace, make a java project (package). Now you can see with out class you cant make much of anything. now goto new and click class. this allows you to work with your code in different ways, and theres no limits to how many you can have. Example:
if you were to make a rpg (console game) and you had characters (witch, wizard etc..) you would describe them as in attack, health, speed etc..(but make sure to set a number to each one and say within those numbers whan battling) And you do the same thing for all of your characters.(You must name them or else it will be illegal.)
after that you use another class to to do what ever you want with these characters you make Ex: battle, kill, story lines etc... by calling them into you code. i hope i helped you understand :)
+ 1
can you be more specific?
0
sorry, i dont really understand you. you need help about objects, or simple classes you make? (methods, variables etc)
- 1
i mean the total ones
- 1
objects please