Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
This question checks whether you can correctly distinguish between the terms operation and method as used in object-oriented modeling (for example, Unified Modeling Language). Although many developers use the words informally, UML assigns each a specific meaning that separates interface from implementation.
Given Data / Assumptions:
Concept / Approach:
In UML, an operation is the specification of a service provided by a class—its name, parameters, and return type. A method is the algorithm (the body) that realizes an operation for a particular class. Thus, the interface-level “form” (signature) is the operation; the executable behavior is the method. Abstract operations may have no method, whereas concrete classes supply methods that implement operations.
Step-by-Step Solution:
Verification / Alternative check:
Consider a Java interface: it declares operations (signatures). A concrete class provides method bodies. The distinction mirrors UML’s operation (specification) versus method (implementation).
Why Other Options Are Wrong:
Common Pitfalls:
Using “method” and “operation” interchangeably; assuming an abstract declaration is a “method” when it is more precisely an operation without a method body.
Final Answer:
Incorrect
Discussion & Comments