Some fields are immutable or derived, not needing external modification.
Not all fields in a class require setters, especially if they are meant to be immutable or are derived from other fields. In an e-commerce system, an 'Order' class might calculate the 'totalPrice' based on the items and their quantities, not allowing direct modification via a setter. This prevents accidental changes that could lead to inconsistent or incorrect state.