Solved

How to Define VB6 interfaces?

Posted on 2010-09-06
3
612 Views
Last Modified: 2013-11-26
hi,
I got the below example for defining an interface in vb6. In the derived class the method name starts with the name of the base class "BaseClass_BaseMethod()". Is this the way interfaces work or is it just a naming convention? Thanks.

' Contents of class BaseClass
Public Sub BaseMethod()
End Sub

' Contents of class DerivedClass
Implements BaseClass
Private Sub BaseClass_BaseMethod()
End Sub
0
Comment
Question by:ipjyo
3 Comments
 
LVL 14

Accepted Solution

by:
VBClassicGuy earned 250 total points
ID: 33614620
Just the way someone named it. You can name your classes anything you want (within reason, no reserved words, etc).
0
 
LVL 3

Assisted Solution

by:deepusreedhar
deepusreedhar earned 250 total points
ID: 33616581
That is just a naming convention someone used. The derivation is implemented by using
"Implements BaseClass"
0
 

Author Comment

by:ipjyo
ID: 33619666
Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question