making use of
Program;
course
Géeks
// become exact same as the return type and parameter kind
open public
deIegate
gap
subnum(
int
a,
int
m);
// method 'amount'
// Primary Technique
fresh
addnum(obj.amount);
// move the values to the methods by delegate object
// These can end up being composed as making use of
// Multicasting of Delegates
open public
deIegate
gap
rectDelegate(
dual
height,
general public
void
aréa(
dual
height,
double
breadth)
Gaming console.WriteLine(
'Area is definitely: 0'
, (size. height));
open public
gap
périmeter(
double
height,
dual
breadth)
Console.WriteLine(
'Perimeter will be: 0 '
, 2. (thickness + elevation));
// Main Technique
fresh
rectangle;
// these two outlines are normal calling
// and pass the technique as paraméter by
new
rectDelegate(rect.region);
// furthermore can end up being created as
Console.WriteLine;