GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  Delphi

 Print  |  
Question:  What is the use of Initialization and Finalization sections of Delphi?



October 10, 2008 16:53:07 #1
 gopalar   Member Since: October 2008    Total Comments: 1 

RE: What is the use of Initialization and Finalization sections of Delphi?
 

Every delphi unit(pas file) you can have Initialization and Finalization section which will be executed during unit load and unlond respectively

Unit2.pas

unit Unit2;

interface

uses
implementation

Initialization
//Do your Initialization Steps Here
Finalization
//Do your Finalization Steps Here
end.

     

 

Back To Question