Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link OOP: Creating a reference to a class and interface 2004-01-10 -- Jim Gambon Newsgroups: comp.lang.clarion
> I'm trying to do something like this:
>
> schedule &ScheduleInterface
> ....
> schedule &= new(ScheduleRoundRobin)
It would be more like this:
schedule &ScheduleInterface
scheduleRoundRobinInstance &ScheduleRoundRobin
......
scheduleRoundRobinInstance &= new(ScheduleRoundRobin)
schedule &= scheduleRoundRobinInstance.ScheduleInterface
.....
schedule &= NULL
DISPOSE(scheduleRoundRobinInstance)
Remember, an Interface is just a "contract" that the documented methods are
available. You still need an instance (the "object" in memory) of the class
that implements those methods.
Regards,
Jim Gambon
Today is November 21, 2024, 6:31 am This article has been viewed 35363 times. Google search has resulted in 2 hits on this article since January 25, 2004.
|
|