title: does not have class type C++
body: <p>This is one class from my program! When I'm trying to compile the whole program, I get an error message like this: </p>
  
  <blockquote>
    <p>main.cpp:174: error: '((Scene*)this)->Scene::lake' does not have class type</p>
  </blockquote>
  
  <p>The source</p>
  
  <pre><code>class Scene
  {
      int L,Dist;
      Background back ;
      Lake lake(int L);
      IceSkater iceskater(int Dist);
  public :
      Scene(int L, int Dist)
      {
          cout&lt;&lt;"Scene was just created"&lt;&lt;endl;
      }
  
      ~Scene()
      {
          cout&lt;&lt;"Scene is about to be destroyed !"&lt;&lt;endl;
      }
  };
  </code></pre>