クラス

  • (none)/static
  • MustInherit/abstract
  • NotInheritable/sealed

 

メソッド

  • Overridable/virtual
  • NotOverridable/sealed
  • MustOverride/abstract
  • Overloads/(none)
  • Overrides/override
  • Shadows/new ※Shadowsは上記とは個別に指定可能
  • Shared/static ※Sharedも上記とは個別に指定可能(Shadowsとも別に指定可能)

 

VBこういう組み合えせもある??

  • MustOverride Overrides
  • NotOverridable Overrides

 

Function ステートメント (Visual Basic)

構文

[ <attributelist> ] [ accessmodifier ] [ proceduremodifiers ] [ Shared ] [ Shadows ] [ Async | Iterator ]
Function name [ (Of typeparamlist) ] [ (parameterlist) ] [ As returntype ] [ Implements implementslist | Handles eventlist ]
[ statements ]
[ Exit Function ]
[ statements ]
End Function

Sub ステートメント (Visual Basic)

構文

[ <attributelist> ] [ Partial ] [ accessmodifier ] [ proceduremodifiers ] [ Shared ] [ Shadows ] [ Async ]
Sub name [ (Of typeparamlist) ] [ (parameterlist) ] [ Implements implementslist | Handles eventlist ]
[ statements ]
[ Exit Sub ]
[ statements ]
End Sub

Class ステートメント (Visual Basic)

構文

[ <attributelist> ] [ accessmodifier ] [ Shadows ] [ MustInherit | NotInheritable ] [ Partial ] _
Class name [ ( Of typelist ) ]
[ Inherits classname ]
[ Implements interfacenames ]
[ statements ]
End Class

クラスにもShadowsが使えるが、どういうときに使うのだろう??

 

参考

 

https://www.youtube.com/watch?v=JclmsguDGNM