In your example:
Class Queue
{
message aMsg[SIZE};
Public:
.
.
.
};
should be this:
class Queue
{
message aMsg[Size];
public:
.
.
.
};
Note the lack of Capitalization on the keywords 'class' and 'public'. You used 'Class' and 'Public', which will generate errors when compiled. Most programming languages (except perhaps BASIC and some others) are very case-sensitive. IE, the term 'Foo' is NOT the same as 'foo'.
In my example, the base class 'bar' is not shown. It can be any class, or even a simple C-type struct. My purpose in using it was to show you how to "friend" another class, and how friends differ (access to all, including private, members) from derived classes (access to public and protected members). I hope this is a bit clearer for you.