Skip to content

Commit

Permalink
Update task.md
Browse files Browse the repository at this point in the history
language checked
  • Loading branch information
stephen-hero authored Jan 22, 2024
1 parent 44f28c5 commit e08e4aa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Task

In the `Animal` file, there are methods that are common for all animal types such as `sleep()` and `eat()`.
You need to identify methods that are specific for some animals and apply the Push Down refactoring
to move them to the corresponding classes from the base interface.
In the `Animal` file, there are methods that are common for all animal types, such as `sleep()` and `eat()`.
You need to identify methods that are specific for certain animals and apply the Push Down refactoring
to move them from the base interface to the corresponding classes.

### Hints

Expand All @@ -13,6 +13,6 @@ Use the &shortcut:Refactorings.QuickListPopupAction; (macOS) or `Shift+Ctrl+Alt+

<div class="hint" title="Refactoring Hint">

Make sure that you deleted not relevant methods after refactoring in `Cat` and `Dog` classes.
For example, `meow()` method should be only in the `Cat` class.
Make sure that you deleted irrelevant methods in the `Cat` and `Dog` classes after refactoring.
For example, the `meow()` method should only exist within the `Cat` class.
</div>

0 comments on commit e08e4aa

Please sign in to comment.