Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix in M7 #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Minor fix in M7 #32

wants to merge 1 commit into from

Conversation

gaurav-karna
Copy link

Fixed abstract class definition for Template Method design pattern -- missing abstract in line 331.

Was not sure if this was intentional or not.

Fixed abstract class definition for Template Method design pattern -- missing abstract in line 331.
@@ -328,7 +328,7 @@ Let's illustrate the situation with the example of `Figure.draw(Graphics)`, from
Here the first and last steps *should always happen in the same way*, but obviously the second step will depend on the actual concrete figure. To realize a solution, we capture the first and third steps as private methods in `AbstractFigure` (`BasicFigure` on the diagram). Assume that the code to complete these two operations can be entirely written in the superclass. The code of the `AbstractFigure` class would thus start to look like:

```java
public AbstractFigure implements Figure
public abstract AbstractFigure implements Figure

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be public abstract class AbstractFigure implements Figure ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants