// 34.ck : function overloading // declare class class X { // delcare foo fun void foo( int a ) { <<
>>; } // delcare foo with different arguments fun void foo( int a, int b ) { <<<"success">>>; } } // extend X class Y extends X { fun void foo( int a ) { <<
>>; } } // instantiate a Y Y y; // call the right one, hopefully y.foo( 3, 5 );
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル