From 12a3ac38b3b6c8cd4ccb2cbfe8477be2fe460f9c Mon Sep 17 00:00:00 2001 From: stephen-hero <78870893+stephen-hero@users.noreply.github.com> Date: Mon, 22 Jan 2024 20:54:23 +0200 Subject: [PATCH] Update task.md language checked --- .../FactoryMethodPatternPractice/Practice/task.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice/task.md b/RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice/task.md index 6d2aa9d..5cce7b2 100644 --- a/RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice/task.md +++ b/RefactoringToDesignPatterns/FactoryMethodPatternPractice/Practice/task.md @@ -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
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.