22
votes
Vote UpVote

Why we need interfaces in Delphi.

The Programming Works – Objects are normally accessed by an object reference. Interface reference is a different method to access an object’s functionality. A simple question – why do we need interface references at all, why can’t we use object references everywhere? There are several reasons to use interface references instead of object references, but most important of them (at least historically) is accessing an object created in a different program module. Let us consider a simple example – an object is created in .dll module and consumed in .exe module. The TMathObject class implements Square ...
Favorite? Off-Topic? Serg @ 2011-12-08 16:45

Statistics

Visits: 2208
Votes: 22
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Boro72
chikh
Chris
Daniele Teti
devtux
François
Lars Fosdal
Leif Uneus
mad006
Mihaela MJ
Ph. B.
Philnext
Ravaut123
rhodydog
Rodrigo
SimaWB
Sylvio
TDelphiHobbyist
TOndrej
vcldeveloper
Yogi Yang
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)