diff --git a/RefactoringToDesignPatterns/FacadePatternPractice/Practice/task.md b/RefactoringToDesignPatterns/FacadePatternPractice/Practice/task.md index 84b905a..1a86044 100644 --- a/RefactoringToDesignPatterns/FacadePatternPractice/Practice/task.md +++ b/RefactoringToDesignPatterns/FacadePatternPractice/Practice/task.md @@ -6,12 +6,12 @@ - Then, within the `Main::main()` method, identify the statements specifically related to video conversion – these should - cover loading, processing, encoding, and saving the video. After identifying them, extract these statements into a new + cover the loading, processing, encoding, and saving of the video. After identifying them, extract these statements into a new method. Name this method `convertVideo` and ensure it accepts two parameters, both of the `String` type. Then, move this method to the `VideoConversionFacade` class and make it `public`. -- Additionally, transfer the declarations of `videoLoader`, `videoProcessor`, `videoEncoder`, +- Additionally, transfer the declarations for `videoLoader`, `videoProcessor`, `videoEncoder`, and `videoSaver` to become `private` properties of the `VideoConversionFacade` class. - Finally, change the main method: it should create an instance of the `VideoConversionFacade` class and invoke @@ -22,19 +22,19 @@
The file where you should write the code is already open. -Please, create a new empty class named `VideoConversionFacade`. +Please create a new empty class named `VideoConversionFacade`.
In the `Main` file, identify the statements within the `main` method that handle video conversion. -Apply the extract method refactoring on these statements and name the resulting method as `convertVideo`. +Apply the extract method refactoring to these statements and name the resulting method `convertVideo`. Then, you'll need to manually transfer this newly-formed method to the `VideoConversionFacade` class.
-In `main` method, you need to create a new instance of the `VideoConversionFacade` class and then call +In the `main` method, you need to create a new instance of the `VideoConversionFacade` class and then call the `convertVideo` method, passing in two parameters: `originalMethodName` and `convertedMethodName`.