Quantcast
Channel: OKWAVE 最新質問(Visual Basic/257)【本日】
Viewing all articles
Browse latest Browse all 6510

継承先でENUMを定義しなおす

$
0
0
vb.net 2008で '親クラス public class moto  private enum indexno   hoge = 0   moge   hage  end enum  protected sub myprint(values() as string)   debug.print values(indexno.moge)  end sub end class '子クラス public class kaihen  Inherits moto  private shadows enum indexno   hoge = 0   piyo   moge   hage  end enum end class とした場合、子クラスのインスタンスを作成してmyprintメソッドを呼び出しても values(3)の値が出力されません。 派生で添え字の順番や数の変更を実装したいのですが、 どうすれば良いのでしょうか。

Viewing all articles
Browse latest Browse all 6510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>