Interfaces...am i missing the point?
- From: "dvddude" <dvddude@xxxxxxxxxxxx>
- Date: Mon, 30 May 2005 12:47:54 GMT
OK i have been reading about interfaces
I have learned that when i include an interface as part of an object...
TMyObject = class(Tobject, IMyInterface)
I then have to implement all the functions/procedures defined in the
interface, inside my object??
So why have to interface in the first place, why not just create all the
function as methods of the object as i'll have to do that anyways.
Surely, i should define the interface and the methods that go with that
interface, then when i ant to use the interface, say in multiple components,
i don;t have to start over writing all the method code again..
What happens with Interfaces and COM? If I define the interface, how do i
define the methods, when i want the interface to call code in a com server?
I'm having trouble getting my head around this!
Reagrds
Vertuas
.
- Follow-Ups:
- Re: Interfaces...am i missing the point?
- From: Rob Kennedy
- Re: Interfaces...am i missing the point?
- From: Maarten Wiltink
- Re: Interfaces...am i missing the point?
- Prev by Date: Re: MODI OCR "class not registered"
- Next by Date: Re: Adding an event To Form
- Previous by thread: COM interfaces
- Next by thread: Re: Interfaces...am i missing the point?
- Index(es):
Relevant Pages
|
|