Why does C++ need a separate header file?
Some people consider header files an advantage: It is claimed that it enables/enforces/allows separation of interface and implementation — but usually, this is not the case. Header files are full of implementation details (for example member variables of a class have to be specified in the header, even though they’re not part of the public … Read more