From 4d4f5bf1412354ac0880a3a400b52f5e1714c576 Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:28:46 +0530 Subject: [PATCH] Updated introduction.md Corrected some spelling mistakes. --- exercises/concept/elons-toy-car/.docs/introduction.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/concept/elons-toy-car/.docs/introduction.md b/exercises/concept/elons-toy-car/.docs/introduction.md index 3bab24744..56f026eb1 100644 --- a/exercises/concept/elons-toy-car/.docs/introduction.md +++ b/exercises/concept/elons-toy-car/.docs/introduction.md @@ -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_). 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: @@ -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 {