Die Suche ergab 6 Treffer

von Eternum
13. Jul 2018 16:44
Forum: Software Engineering - Design and Construction
Thema: Mid-Term Exam WS 15/16 Task 1d)
Antworten: 5
Zugriffe: 800

Re: Mid-Term Exam WS 15/16 Task 1d)

Ah, of course.. I used the implication of co- and contravariance on functions for my general thought process, but I didn't think of actually spelling them out - was way too focused on List, Seq and the given classes.

Thanks a lot!
von Eternum
13. Jul 2018 14:23
Forum: Software Engineering - Design and Construction
Thema: Mid-Term Exam WS 15/16 Task 1d)
Antworten: 5
Zugriffe: 800

Mid-Term Exam WS 15/16 Task 1d)

I would like some input on the following task: Take a look at the following Scala code example: class MySuperclass class MyClass extends MySuperclass class MySubclass extends MyClass //As a reminder: //Boolean <: AnyVal <: Any //everything <: Any //Nothing <: everything //Null <: every AnyRef val f1...
von Eternum
13. Jul 2018 13:11
Forum: Software Engineering - Design and Construction
Thema: REScala conversion functions
Antworten: 4
Zugriffe: 198

Re: REScala conversion functions

I hope I'm not missing something super simple but... How does the handler ever get added to space after the infinite while(true) loop?
von Eternum
12. Jul 2018 11:07
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 603

Re: Linearization Steps - Query Related to Exam Solution Method

Thanks for your feedback. However I don't quite understand why AnyRef and Any need to be mentioned explicitly in this case. The example to the task (Topic 1 task c from the old exam - example taken directly from the slides I believe) had one class extending AnyRef and the linearization stopped at An...
von Eternum
11. Jul 2018 18:37
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 603

Re: Linearization Steps - Query Related to Exam Solution Method

I think the correct linearization (including intermediate steps) should be the following: Given: trait A class B trait C extends B with A trait D extends B trait E extends D with A with C class F extends D with E Question: Lin(F) = ?? Steps: Lin(A) = {A} Lin(B) = {B} Lin(C) = {C, Lin(A)} >> Lin(B) =...
von Eternum
28. Jun 2018 10:52
Forum: Software Engineering - Design and Construction
Thema: Looking for group / partner for exam preparation
Antworten: 1
Zugriffe: 147

Looking for group / partner for exam preparation

Hey everyone,

I'm (obviously) looking for people to prepare for the exam together. If anyone is interested either answer here or send me a PM

Zur erweiterten Suche