` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please 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!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 April 2, 2025, 12:13 am
This article has been viewed 35438 times.
Google search has resulted in 2 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: