of an assignment statement. On the left is a variable that will receive the value returned by
AreaPerPerson( )
. Thus, after
. This means that it will return
data returned by a method must be compatible with the return type specified by the method.
122
P a r t I :
T h e C # L a n g u a g e
Although the preceding program is correct, it is not written as efficiently as it could be.
Specifically, there is no need for the
areaPP
variable. A call to
Do'stlaringiz bilan baham: