Quiz

Question 12–1

What is operator overloading?

Question 12–2

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

Question 12–3

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 12–4

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

Question 12–5

What is the difference between implicit and explicit conversion?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset