Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo correction in 01-introduction-to-java.md #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 01-introduction-to-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ It makes sense to say "Hey String class, tell me the String value for this integ
### 1.5.5. Accessing data members
How we access data members (also known as attributes or instance variables) is exactly analogous to how we access methods.

If a class has an instance or class variable (also know as a `static` variable, since it is declared with the keyword `static`) that is accessible to code outside of the class, it can be referred to via an instance variable or the class name, respectively.
If a class has an instance or class variable (also known as a `static` variable, since it is declared with the keyword `static`) that is accessible to code outside of the class, it can be referred to via an instance variable or the class name, respectively.

For example, class `Integer` has a class variable called `BYTES` that reports the number of bytes of memory used to store an int value. Since it is a class variable, we access it using the class name:

Expand Down