Composite Pattern: Leaf elements

Azazel
Windoof-User
Windoof-User
Beiträge: 30
Registriert: 26. Apr 2017 19:10

Composite Pattern: Leaf elements

Beitrag von Azazel » 10. Feb 2018 09:27

Hi there,

during the lecture of exercise 08 there was a discussion whether AbstractConfiguration can be considered a leaf or not, since it is abstract and considered a component as well.

I can not find any information that clears this up and therefore would be glad if someone could answer this, thanks!

meichholz
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

Re: Composite Pattern: Leaf elements

Beitrag von meichholz » 12. Feb 2018 12:23

Hi,

if you strictly follow the structure of the Composite Pattern, AbstractConfiguration can be considered a leaf.

Best,
Matthias

Antworten

Zurück zu „Archiv“