Reputation: 475
I have a C# code as followed:
[Serializable]
public class RoundedHandle : GoRoundedRectangle, IGoHandle {
GoRoundedRectangle is a class. IGoHandle is an interface.
I had tried to convert it to VB .NET code:
<Serializable()>
Public Class RoundedHandle
Inherits GoRoundedRectangle, IGoHandle
However VB .NET only allows inheritance of one class only.
How can I make the conversion possible by including a class and an interface at the same time?
Thank you.
Upvotes: 1
Views: 1030
Reputation: 10895
In vb.net you have to use the keyword 'Implements' to implement an interface (as shown in the code below):
<Serializable()>
Public Class RoundedHandle
Inherits GoRoundedRectangle
Implements IGoHandle
Upvotes: 3