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

15 lines
343 B
Markdown

## Creating Classes (#3)
Create a `Robot` class with the following four member functions: `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
```
N is the provided number of steps.