I was going through a c++ code and saw a header file with below declaration:
file a.h
class xyz;
But that class was not defined any where in the file. I also wrote a code and it perfectly compiles fine. Just wanted to know what is the use of declaring a class like this as it does't enforces programmer to define.
Thanks in advance!!