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 c38a30b commit 0455f4e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,22 @@ class Square extends Shape {
}
```
By default functions defined in the body of a class are public. This means any code where an instance
of the class is accessible can call this public method. The opposite is true for private methods. Private
method can be called only within the body of the class.
Below is a list of the modifiers that can be applied to functions defined within the body of a class.
| Modifiers | Description |
| ------------- | ------------- |
|public |Public functions and variables are visible in all scopes|
|private |Private functions are visible only within the class body|
|abstract |Abstract functions have no implementation|
|override |An override reflects replacing a super class function|
|static |Static methods can be called without an instance|
|async |Async functions can be suspended and resumed concurrently|
#### Enumeration
An enumeration is a type that specifies a list of constant values. This values are constant and are instances of the enum they are declared in.
Expand Down

0 comments on commit 0455f4e

Please sign in to comment.