Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[b]procedure[/b] DefineProperties(Filer: TFiler); [b]override[/b];
[b]procedure[/b] DestroyHandle;
[b]procedure[/b] DestroyWindowHandle; [b]virtual[/b];
[b]type[/b]
TBase = [b]class[/b]
[b]public[/b]
[b]procedure[/b] MyVirtualMethod; [b]virtual[/b];
[b]procedure[/b] MyStaticMethod;
[b]procedure[/b] ShuntVirtual;
[b]procedure[/b] ShuntStatic;
[b]end[/b];
TDescendent = class(TBase)
[b]public[/b]
[b]procedure[/b] MyVirtualMethod; [b]override[/b];
[b]procedure[/b] MyStaticMethod;
[b]end[/b];
[b]implementation[/b]
[navy]// snip[/navy]
[b]procedure[/b] TBase.ShuntVirtual;
[b]begin[/b]
MyVirtualMethod;
[b]end[/b];
[b]procedure[/b] TBase.ShuntStatic;
[b]begin[/b]
MyStaticMethod;
[b]end[/b];
[b]var[/b]
o : TDescendent;
[b]begin[/b]
o := TDescendent.Create;
[b]var[/b]
Counter : Integer;
o : TDescendent;
[navy]{ TBase }[/navy]
[b]procedure[/b] TBase.MyVirtualMethod;
[b]begin[/b]
Counter := Counter + [purple]1[/purple];
[b]end[/b];
[b]procedure[/b] TBase.MyStaticMethod;
[b]begin[/b]
Counter := Counter + [purple]1[/purple];
[b]end[/b];
[navy]{ TDescendent }[/navy]
[b]procedure[/b] TDescendent.MyVirtualMethod;
[b]begin[/b]
[b]inherited[/b];
Counter := Counter + [purple]2[/purple];
[b]end[/b];
[b]procedure[/b] TDescendent.MyStaticMethod;
[b]begin[/b]
[b]inherited[/b];
Counter := Counter + [purple]2[/purple];
[b]end[/b];
[b]begin[/b]
o := TDescendent.Create;
Counter := [purple]0[/purple];
o.MyVirtualMethod; [navy]// Counter = 3 [/navy]
o.MyStaticMethod; [navy]// Counter = 6 [/navy]
o.ShuntVirtual; [navy]// Counter = 9 [/navy]
o.ShuntStatic; [navy]// Counter = 10 [/navy]
[b]end[/b];