educative.io

Sequence Diagram

A sequence diagram shows us that with time how one class will call the method of another class and get the result. Is that correct?
In sequence diagram for adding an item to the shopping cart, how do shopping card will know that Item is out of stock? It should call the item class to get the info. Am I correct?