That is a forward declaration. It is mostly used when you need to declare the class type without specifying its internal form. This is useful when dealing with pointers or references as statements like:
type* x;
type& x;
does not require the compiler to know the size of type
.