Skip to content

Commit

Permalink
Update task.md
Browse files Browse the repository at this point in the history
language checked
  • Loading branch information
stephen-hero authored Jan 22, 2024
1 parent 44f28c5 commit 12a3ac3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
### Task

- Create a class `TransportationServiceFactory` with the `getTransportation(String transport)` method.
This method should return an appropriate transportation based on the given transport name, using the `switch`
- Create a class named `TransportationServiceFactory` with a method called `getTransportation(String transport)`.
This method should return the appropriate transportation based on the given transport name, using the `switch`
construction.

- In the main method, create an instance of `TransportationServiceFactory` class, add an invocation of
the `getTransportation` method, and invoke `drive` method.
- In the main method, create an instance of the `TransportationServiceFactory` class, add an invocation of
the `getTransportation` method, and invoke the `drive` method.

### Hints

<div class="hint" title="Where to start?">

The file where you should write the code is already open.
Please, create a new class named `TransportationServiceFactory` and implement `getTransportation` method.
Please create a new class named `TransportationServiceFactory` and implement the `getTransportation` method.
</div>

<div class="hint" title="How should TransportationServiceFactory class look?">
Expand Down

0 comments on commit 12a3ac3

Please sign in to comment.