appu kandan wrote:
> i need delphi interview question
http://www.lemanix.com/nickblog/CommentView,guid,3309.aspx
> and inheritance example project.
Every program you've ever written is probably an example of inheritance.
As soon as you add a form to your project, you're writing a descendant
class. Specifically, it's descending from TForm, which descends from
TCustomForm, TScrollingWinControl, TWinControl, TControl, TComponent,
TPersistent, and TObject.
And all that's just for one form. Now there are all the things you put
on the form, and all their properties. It's hard to find something in
Delphi that _doesn't_ use inheritance. The only frequently used class I
can think of that descends directly from TObject is TList.
--
Rob