AnatomyOf

Anatomy of an Object Pascal file

example.pas
1program Hello;
2
3// Minimal Pascal: even the final period has a job.
4begin
5 WriteLn('Hello, Object Pascal!');
6end.
Object Pascal extends Pascal’s structured foundation with classes, interfaces, exceptions, and other object-oriented features; Delphi and Free Pascal are its best-known modern implementations.