List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 2 - Subtype and Supertype", "Title"], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is a type?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["A type can conceptually be viewed as a set of values. If x has the type Real, this means that x belongs to the set of values represented by the type Real.", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is a subtype?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["The subtype relation between types is analogous to the subset relation between sets. If a type A1 is a subtype of A, the set of values corresponding to type A1 is a subset of the set of values corresponding to type A. ", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is a supertype?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["The supertype relation is the inverse of the subtype relation.", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Subtype and Supertype", "Section"], Cell["class House\n  Real length;\n  Real width;\nend House;", "ModelicaInput"], Cell[TextData[List["\n\nDefine a class ", StyleBox["Room", Rule[FontFamily, "Courier"]], " that is a Subtype of the class House. Which also means that House is a Supertype of Room. Also give tha variables some values. "]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class Room\n  Real length \t= 5;\n  Real width \t= 4.3;\n  Real hieght \t= 2.1;\nend Room;", "ModelicaInput"], Cell[CellGroupData[List[Cell["Simulation of Room", "Subsubsection"], Cell["simulate( Room );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(Room\\) : 2004-1-30 10:46:41.2299089 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"hieght\\\", HoldForm], \\*TagBox[\\\"length\\\", HoldForm], \\*TagBox[\\\"width\\\", HoldForm]}\\)\""], "Output"]], Closed]]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[877, 924]], Rule[WindowMargins, List[List[1, Automatic], List[Automatic, 0]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]