Skip to content

Commit 12a3ac3

Browse files
authored
Update task.md
language checked
1 parent 44f28c5 commit 12a3ac3

File tree

1 file changed

+5
-5
lines changed
  • RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice

1 file changed

+5
-5
lines changed

RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice/task.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
### Task
22

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

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

1010
### Hints
1111

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

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

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

0 commit comments

Comments
 (0)