These are the example programs that appear in the FPC documentation.
 
Units guide, chapter on Objects unit :

ex1.pp contains an example for the function TRect.Empty 
ex2.pp contains an example for the function TRect.Copy
ex3.pp contains an example for the function TRect.Union
ex4.pp contains an example for the function TRect.Intersect 
ex5.pp contains an example for the function TRect.Move
ex6.pp contains an example for the function TRect.Grow 
ex7.pp contains an example for the function TObject.Free	
ex8.pp contains an example for the function TObject.Done	
ex10.pp contains an example for the function TStream.StrRead 
ex11.pp contains an example for the function TStream.GetPos
ex12.pp contains an example for the function TStream.GetSize
ex13.pp contains an example for the function TStream.ReadStr
ex14.pp contains an example for the function TStream.Close
ex15.pp contains an example for the function TStream.Flush
ex16.pp contains an example for the function TStream.Truncate
ex17.pp contains an example for the function TStream.Seek
ex18.pp contains an example for the function TStream.Read
ex19.pp contains an example for the function TStream.CopyFrom
ex20.pp contains an example for the function TMemoryStream.Truncate
ex21.pp contains an example for the function TCollection.Foreach
ex22.pp contains an example for the function TCollection.Load
ex23.pp contains an example for the function TCollection.At
ex24.pp contains an example for the function TCollection.indexOf
ex25.pp contains an example for the function TCollection.LastThat
ex26.pp contains an example for the function TCollection.FirstThat
ex27.pp contains an example for the function TCollection.Pack
ex28.pp contains an example for the function TCollection.FreeAll
ex29.pp contains an example for the function TCollection.DeleteAll
ex30.pp contains an example for the function TCollection.Free
ex31.pp contains an example for the function TCollection.Delete
ex32.pp contains an example for the function TCollection.AtFree
ex33.pp contains an example for the function TCollection.AtDelete
ex34.pp contains an example for the function TCollection.AtInsert
ex35.pp contains an example for the function TSortedCollection.Insert
ex36.pp contains an example for the function TSortedCollection.Search
ex37.pp contains an example for the function TStringCollection.Compare
ex38.pp contains an example for the function TStrCollection.Compare
ex39.pp contains an example for the function TUnsortedStrCollection.Insert
ex40.pp contains an example for the function NewStr
