Fix indentation
This commit is contained in:
parent
ed5148d7e6
commit
cced11e310
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ This is the code that we currently must write to use OOP in Nimrod:
|
||||||
|
|
||||||
```nimrod
|
```nimrod
|
||||||
type Animal = ref object of TObject
|
type Animal = ref object of TObject
|
||||||
name: string
|
name: string
|
||||||
age: int
|
age: int
|
||||||
method vocalize(this: Animal): string = "..."
|
method vocalize(this: Animal): string = "..."
|
||||||
method ageHumanYrs(this: Animal): int = this.age
|
method ageHumanYrs(this: Animal): int = this.age
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue