File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
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"
author & internet detective
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.
OCA 8 book
How To Ask Questions The Smart Way
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)
Composition while avoiding circular dependencies
Server Cache Synchonisation Protocol.
how to add 30 days to current data?
need help!!on interfaces and abstarct classes
Open GL Es for j2me
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015