diff --git a/Counter.java b/Counter.java index c8ef943..5167bb0 100644 --- a/Counter.java +++ b/Counter.java @@ -1,20 +1,22 @@ package samples; -import sl4j.logger.log; - public class Counter { private int value; public Counter() { - this.value = 0; + this.value = 4; log.log("Counter created"); } + private int reset(){ + return this.value = 0; + } + public int increment(){ return ++this.value; } - - public int reset(){ - return this.value = 0; + + public double secretVal(){ + return 4.56; } } diff --git a/Example_v0.java b/Example_v0.java index 8d5507a..56d1ad4 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -3,17 +3,17 @@ import java.util.Random; public class A { - private static int Z; + private static int val; public A() { - A.Z = 5; + A.val = 5; } public int fcn(){ - return A.Z * 5; + return A.val * 5; } - public int test(){ - return A.Z * 5; + protected int test(){ + return A.val * 5; } }