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 ...
Visits by Source
Users who voted for this posting