Hi,
what's the purpose of the sentence 'implements'
when you are implementing classes inherit.
thanks.
Printable View
Hi,
what's the purpose of the sentence 'implements'
when you are implementing classes inherit.
thanks.
Hi
The 'implements' keyword does not mean 'inheritance' in VB (well, it inherits Interfaces).
Implements is used to provide PolyMorphism in VB - this means that an Object (class/form/control) can be accessed using different interfaces.
Take a look at the VBCodeLibrary source-code at http://www.codeguru.com/vb/articles/1634.shtml for an example of the Implements keyword/methodology.
You'll see a base-class/interfaces called IDataObject which other classes 'implement' so that they can be called using that interface.
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb