fixed typos (#32588)
This commit is contained in:
committed by
The Coding Aviator
parent
0313dfca04
commit
bc84a7eb67
@ -30,7 +30,7 @@ public class MyClass {
|
|||||||
// Outputs "2"
|
// 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
|
## Static Methods
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user