Clarification for private access modifier

Discussion in 'Java' started by whateverme, Jan 25, 2011.

  1. whateverme

    whateverme New Member

    Joined:
    Dec 10, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    if let's say I have
    <code>private int x</code>

    what does x mean in the about context.

    does it mean:
    is write only
    cannot be used outside the object
    a class variable


    thank you.
     
  2. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    the correct answer is
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice