- 1
C# Fill in the blanks to overload the minus operator for the T class:
public _____ T ________ - (T a, T b) { T res = new T(a.num - b.num); public T - (T a, T b) { T res = new T(a.num - b.num); ________ res; }
3 Réponses
+ 1
public
static
T
operator
- (T a, T b) {
T res = new T(a.num - b.num);
return
res;
}
0
Please Help
0
Have you considered redoing the lesson?
Yes, we can help. But not do the entire exercise for you. Pls think it through, reread the lesson, and bring specific questions.