Linearization Steps - Query Related to Exam Solution Method

Moderatoren: pmueller, SE - Design and Construction

Benutzeravatar
UdoWeber
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 156
Registriert: 8. Nov 2009 15:13

Re: Linearization Steps - Query Related to Exam Solution Method

Beitrag von UdoWeber » 15. Jul 2018 12:11

Jan.K hat geschrieben:
15. Jul 2018 10:02
UdoWeber hat geschrieben:
15. Jul 2018 00:20

Code: Alles auswählen

Lin(C) = {C, Lin(A) >> Lin(B)}
!=

Code: Alles auswählen

Lin(C) = {C, Lin(A) >> Lin(B) >> Lin(AnyRef)}
The second line is probably not what you want, since AnyRef is usually not mixed-in like other classes. Because class C would have to look like this:

Code: Alles auswählen

class C extends AnyRef with B with A
However, since it does not look like this and probably no class will, the first line is what you want to do.
Yes, I think so too.
Thanks Udo

Antworten

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