Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)

12.6. Quiz

Question 121

What is operator overloading?

Question 122

Are operators implemented as properties, static methods, or instance methods ?

Question 123

How does the compiler translate:

Fraction f3 = f2 + f1;

assuming that f2 and f1 are Fraction objects and you have overloaded the + operator for the Fraction class?

Question 124

What should you also do if you overload the == operator?

Question 125

What is the difference between implicit and explicit conversion?

Категории