CLASS doubt

Hi guys,

I have doubt in using class

#include "A.h"

class A B // where B is class A is header file..
{
public: B(){}
//method declarations...

};

what is the purpose of using this type of class declaration?
what is the name of this type declaration?

Thanks in advance..
Kalyan

Last edited on
That code is not legal C++. You must have copied it incorrectly.

It almost looks like inheritance....
Topic archived. No new replies allowed.