Results 1 to 3 of 3

Thread: [java] access to member in composition

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [java] access to member in composition

    Java doesn't have the "friend" concept. In Java you have the option of nested classes or private, file scope classes.

    You can use either of them, from what I see you're trying to do.
    Last edited by marcel; 21st June 2008 at 22:26.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [java] access to member in composition

    Here's a nice thread that goes into the more "philosophical" aspects of this issue: http://forum.java.sun.com/thread.jsp...sageID=2358324

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.