Header files - svh

In reply to chr_sue:

In my previous company we were avoiding using header files.
Wanted to understand what is the mostly used practice.

Having header files can resolve the issues with the compilation order:

  1. implementation class A using class C
  2. implementation of class C

This compilation order would be ok if we separated declaration and implementation.

When having it in the same file, such an order would lead to an error.
I think that using “import C” prior to declaration of class A would also resolve the problem.
What do you think?