1
1
Fork 0
AtomicKotlinCourse/Introduction to Objects/Creating Classes/Exercise 3/task.md

15 lines
348 B
Markdown
Raw Normal View History

## Creating Classes (#3)
Create a `Robot` class with the following four member functions:
2019-10-10 18:58:14 +03:00
`right(steps: Int)`, `left(steps: Int)`, `down(steps: Int)` and
`up(steps: Int)`. Each function should display one of the following phrases
on the console:
```
Right N steps
Left N steps
Down N steps
Up N steps
```
where N is the provided number of steps.