Answer Posted / venkat2050
delegate is a wrapper we can call any method at runtime to
call delegate by calling the keyword del
using system;
namespace sample prog
{
public delegate double(doublex,doubley);
class math
{
public double add(doublex,doubley);
{
returnx+y;
}
}
class sample
{
svm()
{
sample prog.Mathm=new sampleprog.math();
deld=new del(m.add);
c.w(d(48.97,27.29));
d=new del(m.sub);
c.w(d(29.29,7.92));
c.r
}
}
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between iqueryable and ienumerable?
What is difference between an Structure and Class?
What is the difference between malloc () and new?
Explain a MSIL ? Why is it appreciated by all developers?
What is the main method?
how to stored and retrive video in Sql server using asp.net c#......?
What is a base class in C#?
Define Abstract Class in C#
What is ilist c#?
What is web forms in c#?
Can you inherit from a static class in c#?
Is array ienumerable c#?
What is c sharp language?
Explain dataset.acceptchanges method in .net?
What is verbatim string?