Methods define the behaviors and interactions of objects.
Methods allow objects to perform actions and interact with each other. In an e-commerce model, a Cart method might calculate total price by iterating over CartItems and summing their product prices.