I have seen a class declaration like this:

class ClassA NewClass public: ClassB

I can see that ClassB is the base class of NewClass, but I cannot understand why ClassA was put before NewClass... If that program didn't work, I would think it is a bug and simply type:

class NewClass public: ClassB

Thanks in advance.