“int x;” creates an instance from the class “int” or am i wrong?
“vector3 x = new vector3;” creates an instance from the class vector3 or am i wrong?
If that is the case why dont you need to write:
int x = new int;
“int x;” creates an instance from the class “int” or am i wrong?
“vector3 x = new vector3;” creates an instance from the class vector3 or am i wrong?
If that is the case why dont you need to write:
int x = new int;
Someone has asked this very question in the article below, and I’ve seen it previously for Strings also… hope this is of use;