البرمجة الغرضية التوجه في دلفي
البرمجة الغرضية التوجه في دلفي
البرمجة الغرضية التوجه في دلفي
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>البرمجة</strong> <strong>الغرضية</strong> <strong>التوجه</strong> <strong>في</strong> دل<strong>في</strong><br />
عروة عيسى<br />
procedure SetDay(const Value: Integer);<br />
procedure SetMonth(const Value: Integer);<br />
procedure SetYear(const Value: Integer);<br />
function GetDay: Integer;<br />
function GetMonth: Integer;<br />
function GetYear: Integer;<br />
public<br />
procedure SetValue (y, m, d: Integer); overload;<br />
procedure SetValue (NewDate: TDateTime); overload;<br />
function LeapYear: Boolean;<br />
function GetText: string;<br />
procedure Increase;<br />
property Year: Integer read GetYear write SetYear;<br />
property Month: Integer read GetMonth write SetMonth;<br />
property Day: Integer read GetDay write SetDay;<br />
end;<br />
implementation<br />
uses<br />
DateUtils;<br />
procedure TDate.SetValue (y, m, d: Integer);<br />
begin<br />
fDate := EncodeDate (y, m, d);<br />
end;<br />
procedure TDate.SetValue(NewDate: TDateTime);<br />
begin<br />
fDate := NewDate;<br />
end;<br />
function TDate.GetText: string;<br />
begin<br />
Result := DateToStr (fDate);<br />
end;<br />
١٩