MSIR.0775 (what) required for (methtype): Difference between revisions
Jump to navigation
Jump to search
(Created page with "A function or property method declaration in a class was not followed by a datatype. Since a function returns something of a specific datatype, and a property can be set to or re...") |
m (1 revision) |
(No difference)
|
Revision as of 16:45, 9 November 2010
A function or property method declaration in a class was not followed by a datatype. Since a function returns something of a specific datatype, and a property can be set to or returns something of a specific datatype, that datatype must be indicated in the function or property declaration.
In the following property declaration, the datatype for the property is indicated by the <tt>To</tt> clause at the end as <tt>Float</tt>:<pre> property temperatureCelsius is float
The keyword is is not required in indicating the property of function datatype. Add the function or property datatype to the declaration.