Solved

How to Define VB6 interfaces?

Posted on 2010-09-06
3
617 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Deepu Sreedhar
Deepu Sreedhar 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 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