Does anyone mind helping at all? I'd really like to continue my learning in Java so I could eventually create some helpful in-house tools, or even games but obviously I need to learn this to get any further. I know objects are what make up a program in a sense, but I don't know how to make them work together, neither does the internet explain that very well from what I had found.
I know it takes time to help a peon like me, but if anyone could, or even redirect me to a site you know of, I would be very greatful, and even willing to help out your Starcraft Melee skills in return. Besides that I have nothing I can really give back. :(
An object in Java is the result of the awesome concept known as object-oriented programming.
Take the concept of a bike, for example. That concept is essentially the equivalent of a Java class - all the information to build the bike is there, and is just waiting to be implemented. An object would be an instance of the Bike class, that is, a specific bike, such as the one in your garage or whatever. That specific bike is an object, because it is an instance of the Bike class and includes with it all of the attributes that being a bike entails, such as having two wheels and handlebars.
This object can then be used as a placeholder of all the information you need about a bike. For example, you can create a bike object with 21 gears. The variables that store the amount of gears your bike has (21) is linked to your object and can be accessed at any time.
This is essentially what an object is, although in practice its a bit more complicated. You can only really understand and appreciate what objects are after working with them for a while.
A Unit in sc2 is kinda like an "object" in OOP.....
classes are basically objects in java.... for some reason in java they determined naming things all sorts of stupid stuff made it easier.....
I for one hate java with a passion and see no use for it..... others will disagree.... but then i ask them one thing that i could use java to do that i couldnt something else....
also.... the java language is no longer supported by sun micro systems... and the core libraries are never .... the same across multiple platforms....
I'm learning Java, because you can draw in it. I don't have any 3D modeling skills, so any type of C is a no go until I can learn that. My dream is to create games, so I need something that I can work with in the meantime.
Interesting i know how to 3d model eg:blender and i know how to program c++ and c# and c maybe i can make a game if someone is able to point my in a direction. O wait i forgot im taking a class in uni for this :)
If you're familiar with structs in C programming, I actually understood how objects work after messing around with structs for awhile.
The way I look at an object, is that its just a struct, with the added functionality of initializing its own instances with an initializer, and functions (methods) inside it that allow you to modify or retrieve its parameters.
To use this object you would probably initialize it first.
Bike ABC = NewBike(blablabla);
When you wanna mod its variables you just do it like you would do a struct.
Bike.SetWheels(600);
Sorry I know its vague, Maybe someone else might be able to come up with a better explanation.. But this is how I understand it. Its basically just a struct with added functionality.
A Unit in sc2 is kinda like an "object" in OOP.....
classes are basically objects in java.... for some reason in java they determined naming things all sorts of stupid stuff made it easier.....
I for one hate java with a passion and see no use for it..... others will disagree.... but then i ask them one thing that i could use java to do that i couldnt something else....
also.... the java language is no longer supported by sun micro systems... and the core libraries are never .... the same across multiple platforms....
zug zug...
I despise java as well(I've been keeping a list of reasons lately to use on java fanatics when they show up), but using the keyword "class" to declare an object is how it's done all the time. "Class" is frequently used interchangeably with "object" in speech as well. I don't see what your problem is here.
Just as addition:
It's called "class" because it is more generic than "object" - object is something that actually you can interact with - while a class is also virtual. (non-programming)
You can touch a GameObject - but you cannot touch the GameEngine which is handling the Objects - but still is/could be a class - as example.
Or in other words - an object is a derivative of a class.
I'm learning Java, because you can draw in it. I don't have any 3D modeling skills, so any type of C is a no go until I can learn that. My dream is to create games, so I need something that I can work with in the meantime.
You can also draw with C# / C+ + and I'm sure most other superior high-level languages feature such things, too.
Java is, I'd say, relatively easy to use. So it's not a bad language to start with. If you're serious about creating games you should eventually switch over to C+ + after learning the ropes of Java (general language knowledge is useful for C).
Java is cross-platform. It can be used on just about any OS, including phones and even some calculators.
Java is relatively easy to learn. A lot of the expressions (such as regex) are simplified so they aren't strictly necessary.
Java has the JVM. Java is run on top of a virtual machine, which handles a lot of the memory access stuff and garbage collection so it isn't as big a deal.
Several Disadvantages of Java:
Java has the JVM. Because Java has to run through the JVM before it gets to your processor/anything else, it will never be as fast as native languages like C + +.
Java has some unique terminology. Java has seen fit for some reason to develop new terminology, like class, declaration, method, etc.
Java isn't hugely widely spread. Because of the reasons above as well as other reasons, Java has long since been replaced as the industry standard. C/C + + is largely used for stand-alone applications, and Flash has taken over as web media.
Several Successful Projects in Java:
Runescape
Club Penguin
Minecraft
Wurm Online
PeaceMaker
PoxNora
FunOrb
RedDwarf Server
Final Stand:
Java is a perfectly capable language in its own right and as far as making games is a fully functional language. However, because of the limitations placed on itself by Java's own design, it lacks the speed and power to create fast-paced games like shooters and ultra-high-definition 3D games. If you find yourself in a rut because Java is the only language you know, try moving over to C#. The language is incredibly similar to Java (being Microsoft's response to Java) and is a native language for Windows and the Xbox 360.
(...) and is a native language for Windows and the Xbox 360.
XNA must be added to C# for being compatible with Xbox 360 projects.
By the way between Java and C# i prefer C#. More logical, less difficult, more productive, ... I don't know exactly why, it's kinda a feeling.
XNA must be added to C# for being compatible with Xbox 360 projects.
.NET languages are the native languages for the Xbox 360, and C# is a .NET language. XNA is just a C# library and framework that adds the necessary functions needed by an implied Xbox standard. If you knew the standards, you could write the functions yourself.
That said, it's extremely difficult to make C# programs function properly on the Xbox without XNA, and seeing as XNA itself is more or less free (and publishing rights are relatively cheap), doing so would be redundant.
What are objects in java?? How do they work?? I am so confused with them and have no where else to go to find help. =/
A little bump since this is now on the 2nd page where no one looks. :)
Does anyone mind helping at all? I'd really like to continue my learning in Java so I could eventually create some helpful in-house tools, or even games but obviously I need to learn this to get any further. I know objects are what make up a program in a sense, but I don't know how to make them work together, neither does the internet explain that very well from what I had found.
I know it takes time to help a peon like me, but if anyone could, or even redirect me to a site you know of, I would be very greatful, and even willing to help out your Starcraft Melee skills in return. Besides that I have nothing I can really give back. :(
what software are you using. its been a while since i have done java and cant even remember any software :P
http://www.blurtit.com/q223929.html lol this link might be able to help
@zeropoints: Go
I'm using NetBeans and Eclipse. Thanks for the site, I'll read over it. :)
An object in Java is the result of the awesome concept known as object-oriented programming.
Take the concept of a bike, for example. That concept is essentially the equivalent of a Java class - all the information to build the bike is there, and is just waiting to be implemented. An object would be an instance of the Bike class, that is, a specific bike, such as the one in your garage or whatever. That specific bike is an object, because it is an instance of the Bike class and includes with it all of the attributes that being a bike entails, such as having two wheels and handlebars.
This object can then be used as a placeholder of all the information you need about a bike. For example, you can create a bike object with 21 gears. The variables that store the amount of gears your bike has (21) is linked to your object and can be accessed at any time.
This is essentially what an object is, although in practice its a bit more complicated. You can only really understand and appreciate what objects are after working with them for a while.
Objects in Java are pretty much like in any other language in terms of what they do and why they're useful. Look up OOP(object-oriented programming).
@Abion47: Go
So essentially, it's just another form of storage, except it can be used throughout all your classes?
A Unit in sc2 is kinda like an "object" in OOP.....
classes are basically objects in java.... for some reason in java they determined naming things all sorts of stupid stuff made it easier.....
I for one hate java with a passion and see no use for it..... others will disagree.... but then i ask them one thing that i could use java to do that i couldnt something else....
also.... the java language is no longer supported by sun micro systems... and the core libraries are never .... the same across multiple platforms....
zug zug...
@SouLCarveRR: Go
I'm learning Java, because you can draw in it. I don't have any 3D modeling skills, so any type of C is a no go until I can learn that. My dream is to create games, so I need something that I can work with in the meantime.
Interesting i know how to 3d model eg:blender and i know how to program c++ and c# and c maybe i can make a game if someone is able to point my in a direction. O wait i forgot im taking a class in uni for this :)
@StatusQ3: Go
If you're familiar with structs in C programming, I actually understood how objects work after messing around with structs for awhile. The way I look at an object, is that its just a struct, with the added functionality of initializing its own instances with an initializer, and functions (methods) inside it that allow you to modify or retrieve its parameters.
in C, a struct would be as follows:
In java, its something like this.
To use this object you would probably initialize it first.
When you wanna mod its variables you just do it like you would do a struct.
Bike.SetWheels(600);
Sorry I know its vague, Maybe someone else might be able to come up with a better explanation.. But this is how I understand it. Its basically just a struct with added functionality.
Fucking objects, how do they work?!?
I despise java as well(I've been keeping a list of reasons lately to use on java fanatics when they show up), but using the keyword "class" to declare an object is how it's done all the time. "Class" is frequently used interchangeably with "object" in speech as well. I don't see what your problem is here.
Just as addition:
It's called "class" because it is more generic than "object" - object is something that actually you can interact with - while a class is also virtual. (non-programming)
You can touch a GameObject - but you cannot touch the GameEngine which is handling the Objects - but still is/could be a class - as example.
Or in other words - an object is a derivative of a class.
Isn't Object also the motherclass of all classes? IIRC everything inherits from Object.
So it's useful if you want to keep an instance of a certain class, but you don't know which class yet:
ClassX blah = new ClassX();
Object storage = blah;
You can also draw with C# / C+ + and I'm sure most other superior high-level languages feature such things, too.
Java is, I'd say, relatively easy to use. So it's not a bad language to start with. If you're serious about creating games you should eventually switch over to C+ + after learning the ropes of Java (general language knowledge is useful for C).
Several Advantages of Java:
Several Disadvantages of Java:
Several Successful Projects in Java:
Final Stand:
Java is a perfectly capable language in its own right and as far as making games is a fully functional language. However, because of the limitations placed on itself by Java's own design, it lacks the speed and power to create fast-paced games like shooters and ultra-high-definition 3D games. If you find yourself in a rut because Java is the only language you know, try moving over to C#. The language is incredibly similar to Java (being Microsoft's response to Java) and is a native language for Windows and the Xbox 360.
XNA must be added to C# for being compatible with Xbox 360 projects. By the way between Java and C# i prefer C#. More logical, less difficult, more productive, ... I don't know exactly why, it's kinda a feeling.
.NET languages are the native languages for the Xbox 360, and C# is a .NET language. XNA is just a C# library and framework that adds the necessary functions needed by an implied Xbox standard. If you knew the standards, you could write the functions yourself.
That said, it's extremely difficult to make C# programs function properly on the Xbox without XNA, and seeing as XNA itself is more or less free (and publishing rights are relatively cheap), doing so would be redundant.