Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ngallagher committed Feb 5, 2019
1 parent 901c205 commit c38a30b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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<T: Number> {
Expand Down

0 comments on commit c38a30b

Please sign in to comment.