List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 2 - Instances", "Title"], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is an instance?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["Instances are notions of classes and objects. ", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Creating Instances", "Section"], Cell["class Dog\n  constant Real legs = 4;\n  parameter String name = \"Dummy\";\nend dog;", "ModelicaInput"], Cell[TextData[List["\n\nCreate an instance of the class ", StyleBox["Dog", Rule[FontFamily, "Courier"]], ". "]], "Text"], Cell["", "ModelicaInput"], Cell["\n\nCreate another instance and give the dog the name \"Tim\".", "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class DogInst\n  Dog d;\nend DogInst;", "ModelicaInput"], Cell["", "Text"], Cell["class DogTim\n  Dog t(name=\"Tim\");\nend DogTim;", "ModelicaInput"], Cell["", "Text"], Cell[CellGroupData[List[Cell["Simulation of Dog and DogTim", "Subsubsection"], Cell["simulate( DogInst );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(DogInst\\) : 2004-1-30 9:9:5.6057166 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 3 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\(d . legs\\), HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm]}\\)\""], "Output"], Cell["simulate( DogTim );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(DogTim\\) : 2004-1-30 9:9:13.7303526 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 3 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\(t . legs\\), 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[885, 924]], Rule[WindowMargins, List[List[18, Automatic], List[Automatic, 0]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]