From c6059b8842d48450c590609d48eeae4741eb7d0e Mon Sep 17 00:00:00 2001 From: stephen-hero <78870893+stephen-hero@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:22:51 +0200 Subject: [PATCH] Update task.md language checked --- .../ApplyPullUpRefactoringPractice/task.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MovingCode/WhatArePullUpAndPushDownRefactorings/ApplyPullUpRefactoringPractice/task.md b/MovingCode/WhatArePullUpAndPushDownRefactorings/ApplyPullUpRefactoringPractice/task.md index fe1dc12..41feb7c 100644 --- a/MovingCode/WhatArePullUpAndPushDownRefactorings/ApplyPullUpRefactoringPractice/task.md +++ b/MovingCode/WhatArePullUpAndPushDownRefactorings/ApplyPullUpRefactoringPractice/task.md @@ -1,12 +1,12 @@ ### Task In this task, there are three files: -- `Animal` - base interface for different animal types, it contains several methods. +- `Animal` - the base interface for different animal types, it contains several methods. - `Cat` - represents a cat and implements the Animal interface. - `Dog` - represents a dog and implements the Animal interface. -Take a look at the `Cat` and `Dog` classes and identify one method and properties that are not specific to animal type -and move them to the base interface `Animal` using the Pull Up refactoring. +Take a look at the `Cat` and `Dog` classes and identify any methods and properties that are not specific to animal type. +Move them to the base interface `Animal` by using the Pull Up refactoring. ### Hints @@ -18,5 +18,5 @@ Use the &shortcut:Refactorings.QuickListPopupAction; (macOS) or `Shift+Ctrl+Alt+
-Pull Up `play()` method to the `Animal` interface and add `override` modifier before its implementations in `Cat` and `Dog` classes. +Pull Up the `play()` method to the `Animal` interface and add the `override` modifier before its implementations in both the `Cat` and `Dog` classes.