26 lines · 381 B · Text
RawDownload
// 34.ck : function overloading // declare classclass X{    // delcare foo    fun void foo( int a )    { <<<a>>>; }     // delcare foo with different arguments    fun void foo( int a, int b )    { <<<"success">>>; }} // extend Xclass Y extends X{    fun void foo( int a )    { <<<a+1>>>; }} // instantiate a YY y; // call the right one, hopefullyy.foo( 3, 5 );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t