I have a header file that I must respect to implement my class, it has this:

```
class Example {
private:

    std::queue<ObjectOfClass> Elements;

public:
        Example ();
        ~Example ();

};

```

I tried to write into the .cpp file this code, but I'm not sure if it's good:

```
// Constructor
Example::Example() {
    std::queue<ObjectOfClass> Elements;  //maybe I should leave it all empty? not sure
}

// Destructor
Example::~Example() {
    while (!Elements.empty())
    {
        Elements.pop();
    }
}

```