Sat Oct 16 2021 15:58:33 GMT+0000 (Coordinated Universal Time)
Saved by @funcProgramming
int square(int x) { return x * x; } int rectangle(int x, int y) { return x * y; } AreaCalculatorDelegate rect = rectangle; AreaCalculatorDelegate sqr = square; int i = rect(1, 2); int j = sqr(2);
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments