List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 2", "Title"], Cell[CellGroupData[List[Cell["Inheritance", "Section"], Cell[TextData[List["Consider the ", StyleBox["Bicycle", Rule[FontFamily, "Courier"]], " class below..."]], "Text"], Cell["record Bicycle\n  Boolean has_wheels = true;\n  Integer nrOfWheels = 2;\nend Bicycle;", "ModelicaInput"], Cell[TextData[List["\n\nDefine a record, ", StyleBox["ChildrensBike", Rule[FontFamily, "Courier"]], ", that inherits from the class ", StyleBox["Bicycle", Rule[FontFamily, "Courier"]], " and is meant for kids. Give the variables values."]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["record Bicycle\n  Boolean has_wheels = true;\n  Integer nrOfWheels = 2;\nend Bicycle;", "ModelicaInput"], Cell["", "Text"], Cell["class ChildrensBike\n  extends Bicycle;\n  Boolean forKids = true;\nend ChildrensBike;", "ModelicaInput"], Cell["", "Text"], Cell[CellGroupData[List[Cell["Simulation of Bicycle and ChildrensBike", "Subsubsection"], Cell["simulate( Bicycle );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(Bicycle\\) : 2004-1-30 9:17:44.4875313 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 4 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"has\[UnderBracket]wheels\\\", HoldForm], \\*TagBox[\\\"nrOfWheels\\\", HoldForm]}\\)\""], "Output"], Cell["", "Text"], Cell["simulate( ChildrensBike );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(ChildrensBike\\) : 2004-1-30 9:17:52.8155497 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"forKids\\\", HoldForm], \\*TagBox[\\\"has\[UnderBracket]wheels\\\", HoldForm], \\*TagBox[\\\"nrOfWheels\\\", 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[827, 903]], Rule[WindowMargins, List[List[12, Automatic], List[0, Automatic]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]