fixed typos (#32588)

This commit is contained in:
Randy Janecek
2019-04-14 10:07:40 +05:30
committed by The Coding Aviator
parent 0313dfca04
commit bc84a7eb67
+1 -1
View File
@@ -30,7 +30,7 @@ public class MyClass {
// Outputs "2"
```
The outout is 2, because the `COUNT` variable is static and gets incremented by one each time a new object of the Counter class is created. You can also access the static variable using any object of that class, such as `c1.COUNT`.
The output is 2, because the `COUNT` variable is static and gets incremented by one each time a new object of the Counter class is created. You can also access the static variable using any object of that class, such as `c1.COUNT`.
## Static Methods