User Tools

Site Tools


assignments:a1

Assignment 1

Due date: Wednesday, May 29, 2013

Due date: Friday, May 31, 2013

  • Solution

Cover Page: pdf and doc

Hints
  1. Two useful implementations of SET are

Both are generic classes and require the argument to implement interface COMPARABLE (which is true about STRING and INTEGER in Eiffel. In addition they offer you search capabilities that may be useful.

  1. Returning VOID from feature
    • Result variable is VOID by default for all complex types (try declaring MY_MAP[STRING, STRING] and test what is returned by get feature
    • Result is set to 0 for all numerical types (e.g. INTEGER)
    • If Result is complex (e.g. LIST or SET) and you want to per
assignments/a1.txt · Last modified: 2016/05/12 13:54 by pawluk