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 .
Comments
Leave a comment