Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 07:14 PM
Member
 
Join Date: May 2008
Posts: 2
justlearning is on a distinguished road
Private Classes Clarification
I'm a little stumped on this.

I am supposed to create a private class within my main class. I Then need to be able to reference that class from other classes. How do i call that private class and the methods within it from another class?

I tried using an object in the class which i want to call from which references the main class. This didn't really work. It said the package did not exist.

Thanks for your help... let me know if there is anything else you need to know.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-06-2008, 11:51 PM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
Is it private or an inner class? On my site at Little Tutorials you can find a series of articles about inner classes.

If this is not what you need then please explain the problem better.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to implement private chat application using jsp PortalTeam JavaServer Pages (JSP) and JSTL 3 01-08-2008 10:10 AM
Using a JAR from other classes Joe2003 Advanced Java 1 01-02-2008 08:08 PM
Private main method bugger New To Java 1 12-21-2007 10:45 AM
When do we use inner classes? cruxblack New To Java 5 08-10-2007 06:00 PM
Question of private member Felissa Advanced Java 2 06-28-2007 10:08 PM


All times are GMT +3. The time now is 10:59 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org