Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

How to Define VB6 interfaces?

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
ipjyo
Asked:
ipjyo
2 Solutions
 
VBClassicGuyCommented:
Just the way someone named it. You can name your classes anything you want (within reason, no reserved words, etc).
0
 
Deepu SreedharBI Software EngineerCommented:
That is just a naming convention someone used. The derivation is implemented by using
"Implements BaseClass"
0
 
ipjyoAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now