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

Updated introduction.md #2809

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions exercises/concept/elons-toy-car/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Classes

The primary object-oriented construct in Java is the _class_, which is a combination of data (_fields_) and behavior (_methods_).
The primary object-oriented construct in Java is the _class_, which is a combination of data (_fields_) and behaviour (_methods_).
manumafe98 marked this conversation as resolved.
Show resolved Hide resolved
The fields and methods of a class are known as its _members_.

Access to members can be controlled through access modifiers, the two most common ones being:
Expand Down Expand Up @@ -35,8 +35,8 @@ class Car {
```

One can optionally assign an initial value to a field.
If a field does _not_ specify an initial value, it wll be set to its type's default value.
An instance's field values can be accessed and updated using dot-notation.
If a field does _not_ specify an initial value, it will be set to its type's default value.
An instance's field values can be accessed and updated using dot notation.

```java
class Car {
Expand Down