QB45 Forums
Party like you didn't do in 1999.

Programming Talk - View Post
Anything related to programming under the sun

Jofers
ADMIN

Posts: 392
Yeah, but QB just automatically declares it for you.
Posted by Jofers, on Aug 28th, 2005
Have a graphics library automatically included into your program has its pros and cons, as does the amount of virtualization Java has. Java is designed to be completely portable, running in windows, in browsers, in small scripted interfaces, whatever. Drawing to graphics objects on a surface, supplied by the system, is just another means of separating the code from the hardware. IT's the reason Java on phones is so common, because it's a robust language completely separated from the hardware, so it can handle so many types of chips and chip architectures, right off the bat.

You can use static methods, btw. "Math" works like that, you can use the functions without tying them to an object, just jump right out and say "Math.cos()" or whatever, if the package is included at the top. You can tell java to automatically include a package, or do it with meta-code at the top of your program, just like BASIC. Graphics functions are tied to a graphics object becuase you'd have to keep supplying the surface whenever you draw anything, anyways.

Back to Programming Talk

Replies:
There are no replies to this message

Post a reply:







All content copyrighted 2004, All rights reserved.