Creating a data type instance difference question

Hey, is there a difference between creating these two kinds of data types.

Class someClass{

}

someClass object1;
someClass object1 = new someClass();

Is there a difference ?

-Thanks, Karl

Neither are data.

There is a difference, but consider this:

A Foreman gets a blue print for a new office building. He looks at the blue print.

Is the blue print an office building? No - it describes one.

He builds an office building from it. Is that an office building? Yes. Is is a blue print? No. Was it generated from a blue print? Yes.

He builds another office building. Is that an office building? Yes. Is it the same office building? No. If you smash out a window in it, will a window in the other be smashed out? No.

The class is a “blue print” from which you create new objects. The objects are the constructed instance of the class. It is something that exists in game terms. The class contains only instructions for how it should exist.

That’s the difference.