A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Feb 11, 2004
Feb 15, 2004 23:28:00
can a function can be accessed in a class from another class that has no main function
Joined: Nov 15, 2003
Feb 16, 2004 00:25:00
As far as I know, there's only ever one main method.
Yes, you can access functions in one class from another class. It just depends on which access modifiers (Public, Protected, Private, (Default)) are in place.
I agree. Here's the link:
Making a class instance "current"
Calling DLL function
how to pass a resultset object in a function
Function in a function - ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015