When converting from a smaller numeric type into a larger one the cast is implicit. An
example of when an explicit cast is needed is when a value may be truncated.
Is it helpful?
Add CommentView Comments
Ques 7. Can assignment operators be overloaded directly?
No
Is it helpful?
Add CommentView Comments
Ques 8. What do operators is and as do?
as acts is like a cast but returns a null on conversion failure. Is comares an object to a
type and returns a boolean.
Is it helpful?
Add CommentView Comments
Ques 9. What is the difference between the new operator and modifier?
The new operator creates an instance of a class whereas the new modifier is used to
declare a method with the same name as a method in one of the parent classes.
Is it helpful?
Add CommentView Comments
Ques 10. Explain sizeof and typeof.
typeof obtains the System.Type object for a type and sizeof obtains the size of a type.