Content deleted Content added
Mothmolevna (talk | contribs) m Reverted 1 edit by SoftwareDeveloper to last revision by Aleagle. using TW |
→Apple's Object Pascal: improved formatting |
||
Line 41:
==Hello world example ==
===Apple's Object Pascal===
'''type'''▼
'''type'''
THelloWorld = '''object''' '''procedure''' Put;
HelloWorld: THelloWorld;<br/>▼
'''procedure''' THelloWorld.Put;▼
'''begin'''▼
WriteLn('Hello, World!');▼
'''end''';<br/>
▲ HelloWorld: THelloWorld;<br/>
▲ '''procedure''' THelloWorld.Put;
▲ '''begin'''
▲ WriteLn('Hello, World!');
▲ '''end''';<br/>
▲ '''begin'''
New(HelloWorld);
HelloWorld.Put;
Dispose(HelloWorld);
===Turbo Pascal's Object Pascal===
|