Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update task.md #27

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading