T
Tony Johansson
Hello!
Below I have two different alternativ for where to declare the delegate
DoCalculate.
Is it possible to say something generally where to declare the delegate.
Is best within the class or outside the class. Or is just a matter of taste?
Alt 1
delegate double DoCalculate(double num);
class RocketCalculator
{
... ... ...
}
Alt 2
class RocketCalculator
{
public delegate double DoCalculate(double num);
... ... ...
}
//Tony
Below I have two different alternativ for where to declare the delegate
DoCalculate.
Is it possible to say something generally where to declare the delegate.
Is best within the class or outside the class. Or is just a matter of taste?
Alt 1
delegate double DoCalculate(double num);
class RocketCalculator
{
... ... ...
}
Alt 2
class RocketCalculator
{
public delegate double DoCalculate(double num);
... ... ...
}
//Tony