Hacker News new | ask | show | jobs
by Const-me 2154 days ago
Yes.

To add to that, in C++ that approach often saves non-trivial amount of compilation time. Consumers of the object only need to #include the interface, while the implementation of the object, both code and data, stays private and is not needed to compile the consuming code.