diff --git a/README.md b/README.md index b10a1443..00b401c5 100644 --- a/README.md +++ b/README.md @@ -870,7 +870,7 @@ types and those constructed from the script execution flow. #### Class -A class is the most basic type. It contains variables and functions that can operate on those variables. +A class is the most basic type. It contains variables, and functions that can operate on those variables. Once declared a type can be instantiated by calling a special function called a constructor. There are two primary categories of class, the abstract class and the concrete class. An abstract class represents a generic concept and as such cannot be instantiated. Below is an example of an abstract class. @@ -907,7 +907,7 @@ abstract class Shape { A concrete class represents an whole object or entity and unlike abstract classes it can be instantiated. To leverage methods and state from other classes inheritance is possible. Below we can see how a square -inherits state and a method from the shape class. +inherits state and a method from the abstract shape class. ```js class Square extends Shape { @@ -954,7 +954,8 @@ let blue = Color.BLUE; #### Trait -A trait is similar to a class in that is specifies a list of functions. However, unlike a class a trait does not declare any variables and does not have a constructor. It can be used to add functions to a class. +A trait is similar to a class in that is specifies a list of functions. However, unlike a class a trait +does not declare any variables and does not have a constructor. It can be used to add functions to a class. ```js trait NumberFormat {