A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Using Someone Else's Class(es)
Joined: Mar 02, 2005
Jul 11, 2005 17:42:00
If someone provides me a .class how can I use it together with my other class(es) to run it?
What do I need to know about this other .class so I can use it?
How do I use it if this .class has public methods (don't care about the implementation, just wants to use it).
amerzil co-ed student<br />"Praise be the Code"
Joined: May 26, 2003
Jul 11, 2005 18:36:00
The person who gave you the .class file typically tells you the name of the class and the public methods in it. This could be in the form of JavaDoc or even a list.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Apr 22, 2005
Jul 12, 2005 08:56:00
you can also just look at the code and figure it out yourself. but mainly all you do is import it into the other code that you want to use it in.
I agree. Here's the link:
subject: Using Someone Else's Class(es)
need help!!on interfaces and abstarct classes
Composition while avoiding circular dependencies
Open GL Es for j2me
Server Cache Synchonisation Protocol.
how to add 30 days to current data?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014