OOP - polymorfizmus, použitie
4procedure  TForm1.Button5Click(Sender:TObject);
4begin if a<>nil then with a do
4             begin  if vid then skry; Free; a:=nil; end;
4          if b<>nil then with b do
4             begin  if vid then skry; Free; b:=nil; end;
4          if c<>nil then with c do
4             begin if vid then skry; Free; c:=nil; end;
4end;
4