Quantum and classical ballistic transport in constricted two-dimensional electron gases