A class bundles data with the functions that work on it. Members under private: can only be changed by the class's own member functions, so the class can promise rules about its data, called invariants: an order never has a negative quantity, and its filled amount never exceeds its quantity.
The constructor runs when an object is created and is the place to check the input. It sets members in its initializer list, Order(std::string s, int q) : symbol_(std::move(s)), quantity_(q) { ... }, and throws an exception, such as std::invalid_argument, when the input breaks a rule: a half-built object never exists.
Member functions then change the object only in ways that keep the invariants. A trailing underscore on member names (quantity_) is one common way to tell them apart from parameters.
The constructor checks its input; the only way to change the balance is a member function that keeps it valid.