Designe Pattern with abstract methods

Moderatoren: pmueller, SE - Design and Construction

theChaoS
Windoof-User
Windoof-User
Beiträge: 27
Registriert: 22. Apr 2012 03:39

Designe Pattern with abstract methods

Beitrag von theChaoS » 8. Jul 2018 22:42

Hello,

One general questions concerning design patterns. We assume we have a design pattern that usually would contain an abstract class with abstract methods. We find that very same pattern only that the methods are implemented in the abstract class and overwritten in the concrete class. Is that construct implementing the pattern (in other words how exact do we have to follow the slides)?

pmueller
Moderator
Moderator
Beiträge: 87
Registriert: 25. Jan 2018 11:14

Re: Designe Pattern with abstract methods

Beitrag von pmueller » 9. Jul 2018 10:35

Hi,
yes such constructs can be valid implementations of a pattern. For most patterns there are some variations, e.g. defining the Child Management operations of a Composite in the Top level Component, instead of only in the Composite itself.

Best,
Patrick

Antworten

Zurück zu „Software Engineering - Design and Construction“