Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 632
  • 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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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