Tag Archives: access modifiers

Unit 1 ( Prog 2) : Test Access Modifiers

By | June 2, 2013

Use of access modifiers and class properties… /*   * Question : value of rightFirst will be always one third of leftFirst or not ?  * NO because both are public, no need to use setLeft() method for that  * those are directly accessible…:p  * but it is true in case of class ValueSecond  */ class… Read More »

UNIT 1 (Concept 1) : Access Modifiers in java

By | June 2, 2013

Visibility of the properties  of class for different access modifiers  ——————————————————————————————————————– 1) From the same class           Public , Protected, Private and Default 2) From any class in same package           Public, Protected and Default 3) From a subclass in same package          … Read More »