both of which are syntactically correct, but the former one is used as conventional style. Sinceconstqualified objects are not mutable, they must be initialized during the declaration. This makes a statementconst int number;- invalid and throws compiler error (probably your IDE will also scream ...