26.04.2015 Views

البرمجة الغرضية التوجه في دلفي

البرمجة الغرضية التوجه في دلفي

البرمجة الغرضية التوجه في دلفي

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>البرمجة</strong> <strong>الغرضية</strong> <strong>التوجه</strong> <strong>في</strong> دل<strong>في</strong><br />

عروة عيسى<br />

procedure TDate.Increase;<br />

begin<br />

fDate := fDate + 1;<br />

end;<br />

function TDate.LeapYear: Boolean;<br />

begin<br />

// from DateUtils<br />

Result := IsInLeapYear(fDate);<br />

end;<br />

procedure TDate.SetDay(const Value: Integer);<br />

begin<br />

fDate := RecodeDay (fDate, Value);<br />

end;<br />

procedure TDate.SetMonth(const Value: Integer);<br />

begin<br />

fDate := RecodeMonth (fDate, Value);<br />

end;<br />

procedure TDate.SetYear(const Value: Integer);<br />

begin<br />

fDate := RecodeYear (fDate, Value);<br />

end;<br />

function TDate.GetDay: Integer;<br />

begin<br />

Result := DayOf (fDate);<br />

end;<br />

function TDate.GetMonth: Integer;<br />

begin<br />

Result := MonthOf (fDate);<br />

٢٠

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!