L. P. with Microsoft C# - Level 4-Quiz-2

  1.  To overload an operator means Give it a custom response based on class type.
  2. What is a problem associated with overusing overloaded operators?
    The code becomes confusing.
  3. Operators must be defined as static.
  4. Operator keyword is used to overload an operator.
  5. How do you use an overloaded operator?
    Place the operator in a statement.
  6. Create a method is an alternative to overloading operators.
  7. What special consideration is needed for overloading a comparison operator?
    They should be overloaded in pairs.
  8. What additional consideration should you make when overloading the IsEqualTo operator?
    You should also overload the Equals operator.
  9. Conversion casts can be explicit or implicit. Explicit conversions are needed if there is a possibility of error.
  10. Explicit type of conversion should you use if you want to throw an exception.
  11. What type of custom conversions can you make?
    Implicit or explicit.
Permalink | Comments (0) | Hits: 1109 | Time: 13:53:48
Learning Programming with Microsoft C# - Level 4-2.4
Learning Programming with Microsoft C# - Level 4-3.1
All Comments

 No Data Now...

Post Your Comment
^ ^

Top