Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace DelegatiTest
- {
- class Test_delegata
- {
- public delegate void delegat(double a, double b);
- public void Kolicnik(double a, double b)
- {
- double kolicnik = a / b;
- }
- public void Razlika(double a, double b)
- {
- double razlika = a - b;
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Test_delegata mojTest = new Test_delegata();
- Test_delegata.delegat x = new Test_delegata.delegat(mojTest.Kolicnik);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement