This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes javaidentifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javaidentifier" Watch "javaidentifier" New topic
Author

javaidentifier

ojak dev
Greenhorn

Joined: Feb 11, 2004
Posts: 1
can a function can be accessed in a class from another class that has no main function
Adam Altmann
Greenhorn

Joined: Nov 15, 2003
Posts: 21
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.


SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javaidentifier
 
Similar Threads
Function in a function - ?
how to pass a resultset object in a function
Calling DLL function
return value???
Making a class instance "current"