![]() |
![]() |
![]() |
![]() |
![]() |
|
Next, suppose that you attempt to evaluate the following expression, which
includes an instance of the weight class created by the instance-creation
method, gm:
Workspace
3gm + 2
Because 2 is not a Weight instance, you will see an error
display:

You would, of course, prefer a more specific indication of what is wrong, such as the following:
