Machine-translated by Google. Questions are authored in English.
Top

Discussion

A method defines the form or protocol of the operation, but not its implementation.

  • A.True
  • B.False

Answer: B

Correct answer: False

The terms are the other way round. An operation specifies the form or protocol - the name, the parameters and the result - while a method is the body that implements it. The distinction is what makes polymorphism expressible: one operation may have several methods, one in each class.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.