title: Invalid type error while trying to create objects in Apex programming
body: <p><a href="https://i.stack.imgur.com/uab8A.png" rel="nofollow noreferrer">Snapshot of the error</a></p>
  
  <p>I am learning Apex programming and come from a Java background. I started by creating a simple Car class. I then instantiated the same under the Execute Anonymous console by writing :</p>
  
  <p>Car test =new Car();</p>
  
  <p>but I am getting an Invalid Type error message. I have recreated, renamed but am not sure what is causing this. Any help will be appreciated. </p>