Christopher Laurenzano wrote:is it possible to include a reference to an specific object of a class you created? May be a stupid question, but just curious.
The type of a variable is either a primitive type (int, char, double, long, byte, boolean, float, or short.) or else it's a reference type. If it's the latter, then the variable can contain either the null value or a reference to an object of that type. You seem to feel like there's all kinds of restrictions stacked up around that rule. But no. The type can be anything defined by anybody, and the variable can refer to any object of that type, no matter how it was created and where it came from.