Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hisham Younis   on Feb 08 In Java Category.

  
Question Answered By: Alfonso Martin   on Feb 08

Did you see my post regarding making your method  public?

You could also mark your variable  as public, but this goes against one
of the primary tenets of object-oriented programming, namely
encapsulation.

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on variable accesibility Or get search suggestion and latest updates.


Tagged: