List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 1", "Title"], Cell[CellGroupData[List[Cell["Inheritance", "Section"], Cell["class Animal\n  Boolean isAlive = true;\n  Boolean talks = false;\nend Animal;", "ModelicaInput"], Cell["\n\nDefine a class, Bird, that inherits from the class Animal. Give the variables values.", "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class Bird\n  extends Animal;\n  Integer wings = 2;\n  Integer legs  = 2;\n  Boolean CanFly = true;\nend Bird;", "ModelicaInput"], Cell[CellGroupData[List[Cell["Simulation of Animal and Bird", "Subsubsection"], Cell["simulate( Animal );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(Animal\\) : 2004-2-2 13:33:25.6998800 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 4 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"isAlive\\\", HoldForm], \\*TagBox[\\\"talks\\\", HoldForm]}\\)\""], "Output"], Cell[BoxData[RowBox[List["talks", "[", "0", "]"]]], "Input"], Cell["", "Text"], Cell["simulate( Bird );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(Bird\\) : 2004-2-2 13:29:13.4787186 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 7 variables>\\n\\!\\({\\*TagBox[\\\"CanFly\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"isAlive\\\", HoldForm], \\*TagBox[\\\"legs\\\", HoldForm], \\*TagBox[\\\"talks\\\", HoldForm], \\*TagBox[\\\"wings\\\", HoldForm]}\\)\""], "Output"], Cell[BoxData[RowBox[List["{", RowBox[List[RowBox[List["isAlive", "[", "0", "]"]], ",", " ", RowBox[List["legs", "[", "0", "]"]], ",", " ", RowBox[List["wings", "[", "0", "]"]]]], "}"]]], "Input"]], Open]]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Question", "Section"], Cell[TextData[List["What value has the variable ", StyleBox["talks", Rule[FontFamily, "Courier"]], " in the class ", StyleBox["Bird", Rule[FontFamily, "Courier"]], "?"]], "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell[TextData[StyleBox["false", Rule[FontFamily, "Courier"]]], "Text"]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[844, 888]], Rule[WindowMargins, List[List[191, Automatic], List[Automatic, 36]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]