How to use instance of one class in another class
<p>I want to make a queue class which is storing message class objects in it.</p>

<pre><code>Class Queue
{

message aMsg[SIZE];
Public:

// all other methods to manipulate this array of messages that is a queue. 
//Is there any other simple method I can do these object interactions. 
//I have searched a lot of stuff but all comes in term of inheritance 
//which I don't have in my case. 

}
</code></pre>

<p>The Message class should be like that</p>

<pre><code>class message
{
 int MsgId;

public:
    message();
    message(int Id);
    int getMessageId();
    viod setMessageId(int id);
};
</code></pre>
