Answer to Question #239179 in C# for Gayatri

Question #239179

Create a Math Class which contains methods for addition, subtraction, multiplication and division.

Return type of addition and subtraction methods should be void and multiplication and division should return some values.

Task 1: create delegates and call the above functions and use multicast delegates usage

Task 2: using delegate reference call above any one of the method anonymously.

Task 3: remove all the functions addition, subtraction, multiplication and division and call all the methods using lambda expression.

Task 4:Create an dummy event in console based application and call it using a delegate and that delegate should point to one function .Demonstrat how event will call a delegate and how delegate will call a function .


1
Expert's answer
2021-09-19T03:39:50-0400
Dear Gayatri, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS