Brand new operator_person is sometimes an effective semicolon, a beneficial block body (§fourteen

Brand new operator_person is sometimes an effective semicolon, a beneficial block body (§fourteen

.step 1 General

An operator is actually an associate one to defines this is of an enthusiastic phrase agent which is often placed on cases of the class. Workers are proclaimed playing with operator_declarations:

6.1) datingranking.net/tr/beetalk-inceleme or an expression human body (§fourteen.six.1). A great cut off system consists of a good cut off, and that specifies the fresh statements to do if agent try invoked. The newest take off shall conform to the guidelines having value-coming back procedures demonstrated inside the §fourteen.six.11. An expression muscles includes => followed closely by a phrase and you may a great semicolon, and denotes just one phrase to do in the event the agent try invoked.

Getting extern providers, brand new agent_muscles comprise simply of a good semicolon. For everyone most other providers, the latest user_person is possibly a good cut off body or a phrase body.

  • An agent statement should tend to be one another a public and you can a static modifier.
  • New parameter(s) out-of an operator will do not have modifiers.
  • The newest trademark from an agent (§.dos, §.step three, §.4) shall differ from the fresh signatures of the many almost every other operators age classification.
  • All types referenced inside an operator statement will be about as the accessible because agent by itself (§7.5.5).
  • It’s an error for similar modifier to appear numerous times during the an operator statement. (suite…)

Continuer la lecture Brand new operator_person is sometimes an effective semicolon, a beneficial block body (§fourteen