Answer:
In this case,it will give us compile time error saying that:
cannot convert from 'decimal' to 'int' in case of passing decimal values
cannot convert from 'string' to 'int' in case of passing string values
So to avoid above exception,always pass numeric value in Unit.Pixel method.
Asked In: Many Interviews |
Alert Moderator