3
class InstancesSlide : BaseSlide
6
Title title { this, caption = "Instances" };
9
//Col t { this, maxSize = { 1450, 1150 }, margin = { 115, 15, 115, 15 } };
10
Col t { this, maxSize = { 1550, 1250 }, margin = { 60, 15, 60, 15 } };
11
//Header { t, caption = "Features" };
13
Bullet { t, caption = "Multiple objects can be instantiated from same class" };
14
Bullet { t, caption = "Value of members can be modified from defaults" };
15
Bullet { t, caption = "Virtual methods can be overridden" };
17
SmallHeader { t, caption = " Syntax:" };
19
CodeBlock { t, minSize = { 920, 320 }, caption =
20
"// Named Instance (declaration)\n"
21
"MyClass object { member = value };\n"
23
"// Anonymous Instance (expression)\n"
24
"MyClass { member = value };"