+ 1

can you help me understand classes?

23rd Aug 2016, 10:32 AM
Seungyoon Lee
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 :)
23rd Aug 2016, 11:07 AM
Aquarius
Aquarius - avatar
+ 1
can you be more specific?
23rd Aug 2016, 10:47 AM
Molnár Gábor
Molnár Gábor - avatar
0
sorry, i dont really understand you. you need help about objects, or simple classes you make? (methods, variables etc)
23rd Aug 2016, 10:52 AM
Molnár Gábor
Molnár Gábor - avatar
- 1
i mean the total ones
23rd Aug 2016, 10:49 AM
Seungyoon Lee
- 1
objects please
23rd Aug 2016, 10:57 AM
Seungyoon Lee