Re: inherit or implements?
Quote:
Originally posted by kleinma
I have some sample code done in C#, but the code I am writing is in VB.NET
the documentation for these DLLs I am using is total crap and gives me next to no information
So the class declare looks like this
Code:
public class CImageOrderStatusListener : IOrderStatusListener
{
public CImageOrderStatusListener()
{
}
//MORE CODE HERE
}
since IOrderStatusListener is an interface I would assume in my VB.NET code I would implement it, but the documentation says
"Inner class inherits IOrderStatusListener to listen to the image order status. "
so its a bit confusing, unless its just saying that implementing the interface is interface inheritence...
and why have the empty function with the same name as the class.. is that a C# thing??
It's definitely implementing if the the class is an interface (which the I prefix suggests), and the method with the same name (but without a return type) as the class is the constructor :)
[Edit] Got confused between inherit and implement for a moment there :P