In UML diagrams, operations that function as queries provide ways to observe the state of a system. You can specify that an operation is a query if it returns a value, but does not change the state of a system.
Parent topic: Managing attributes and operations in classifiers
Related concepts
Operations