Public int TemperatureC {get; The set; }
Public int TemperatureF=& gt; 32 + (int) (TemperatureC/0.5556);
Public int TemperatureF=& gt; 32 + (int) (TemperatureC/0.5556);
And what is the difference between this
Public int TemperatureF=32 + (int) (TemperatureC/0.5556);
CodePudding user response:
No, no, you keep the rules there,In python, you can manually indent
Your assignment is to write: in dephil=
The land is in PHP - & gt;
In.net, too, how was he needs it,
Public int TemperatureF=& gt; 32 + (int) (TemperatureC/0.5556);
Equal to
Public int TemperatureF {get 32 + {return (int) (TemperatureC/0.5556; }}
Also equal to
Privite readeronly int _TemperatureF=32 + (int) (TemperatureC/0.5556;
Public int TemperatureF {get {return _ _TemperatureF; }}
So how to write it is ok, casual casual, not entangled with
CodePudding user response:
The former is a function call, the latter is assignment