About a class inherits class and implements interface

  • Thread starter Thread starter Jet Leung
  • Start date Start date
J

Jet Leung

Hi all,
In VB.net if I want to inherits a Class and implement a interface I can
wrote like this:

Class A
Inherits CObject
Implements IObject
.....
End Class

And if I want to do the same things like the VB code in C# ,how to do that??
like this?
Class A:Object,IObject ???
 
Jet Leung said:
Hi all,
In VB.net if I want to inherits a Class and implement a interface I can
wrote like this:

Class A
Inherits CObject
Implements IObject
....
End Class

And if I want to do the same things like the VB code in C# ,how to do that??
like this?
Class A:Object,IObject ???

Yes, exactly.
 
Hi Jet
In VB.net if I want to inherits a Class and implement a interface I can
wrote like this:

Class A
Inherits CObject
Implements IObject
....
End Class

And if I want to do the same things like the VB code in C# ,how to do that??
like this?
Class A:Object,IObject ???

Correct. Don't forget, thought, that unlike VB C# is case-sensitive language
and the keywords are written with small letter anly. In particular *class*
is with small 'c'.

class A:Object,IObject
{
}
 
Back
Top