realbasic-nug
[Top] [All Lists]

"Implement interface" - what am I missing this time

To: realbasic-nug at lists dot realsoftware dot com
Subject: "Implement interface" - what am I missing this time
From: Jan Erik Moström <lists at mostrom dot pp dot se>
Date: Thu, 30 Jun 2005 20:16:31 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I'm playing with RB 2005 and found the useful command "Implement interface",
so I opened a small test project that I created in v5.5.5, select the class
and used the command ... and becomes a bit surprised.

The interface looks like this

Interface FormatReader 
Function openSource(f as FolderItem) As Boolean 
End Function 
Function hasMoreRecords() As Boolean 
End Function 
Function getRecord() As Record 
End Function 
Function closeSource() As Boolean 
End Function 
Sub moveToNextRecord() 
End Sub 
End Interface

and the resulting class like this:

Class BookendsXMLReader 
Implements FormatReader 
Protected Function openSource(f as FolderItem) As Boolean 
    // Part of the FormatReader interface. 
End Function 
Protected Function hasMoreRecords() As Boolean 
    // Part of the FormatReader interface. 
End Function 
Protected Function getRecord() As Record 
    // Part of the FormatReader interface. 
End Function 
Protected Function closeSource() As Boolean 
    // Part of the FormatReader interface. 
End Function 
Protected Sub moveToNextRecord() 
    // Part of the FormatReader interface. 
End Sub 

Where did the "protected" come from??? 


                    jem
-- 
Jan Erik Moström, www.mostrom.pp.se
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • "Implement interface" - what am I missing this time, Jan Erik Moström <=