List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 4", "Title"], Cell[CellGroupData[List[Cell["Prefix Final", "Section"], Cell["We have a type Banana. Imagine you want to make two instances of this banana, lightBanana and swedishBanana.", "Text"], Cell["type Banana = Real(unit = \"kg\",\n\t\t\t\t   final fixed = false);", "ModelicaInput"], Cell["\nIs this allowed? Why / Why not?", "Text"], Cell["class Bananas\n  Banana lightBanana(unit = \"hg\");\n  Banana swedishBanana(fixed = true);\nend Bananas;", "ModelicaInput"], Cell[CellGroupData[List[Cell["Tip", "Subsection"], Cell["String is declared final.", "Text"]], Closed]], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["The class is not correct, since the value of fixed in the type Banana is already set to final.", "Text"], Cell[TextData[List["class Bananas\n  Banana lightBanana(unit = \"g\"); \t\t\t// Correct\n  ", StyleBox["Banana swedishBanana(fixed = true);\t\t", Rule[FontColor, RGBColor[1, 0, 0]]], "// Error, since fixed is declared final", "\nend Bananas;"]], "ModelicaInput"], Cell["", "Text"], Cell[CellGroupData[List[Cell["Simulation of Bananas", "Subsubsection"], Cell["simulate( Bananas );", "ModelicaInput"], Cell[BoxData[RowBox[List[RowBox[List["Simulate", "::", "insmd"]], RowBox[List[":", " "]], "\"Simulate failed to instantiate model.\""]]], "Message"], Cell[BoxData[RowBox[List[RowBox[List["ShowLog", "::", "shlg"]], RowBox[List[":", " "]], "\"\\!\\(\\\"Instantiation started\\\\nError: Component type specifier Banana not found\\\\n  File: c:\\\\\\\\cvsroot\\\\\\\\mathmo~1\\\\\\\\workdir\\\\\\\\model.mo, line 2\\\\n  Component context: lightBanana\\\\n  Component declared as Banana lightBanana in Bananas\\\\nError: Component type specifier Banana not found\\\\n  File: c:\\\\\\\\cvsroot\\\\\\\\mathmo~1\\\\\\\\workdir\\\\\\\\model.mo, line 3\\\\n  Component context: swedishBanana\\\\n  Component declared as Banana swedishBanana in Bananas\\\\n- savelog\\\\n\\\"\\).\""]]], "Message"], Cell[BoxData["$Failed"], "Output"]], Closed]]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[833, 924]], Rule[WindowMargins, List[List[36, Automatic], List[Automatic, 0]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]