Hello,
What does a datatype of a class mean? What can I do with it? I have seen many datatypes that have the class' name instead of int or something similar. I also have seen arrays with as datatypes the class' name..
For example this:
What can I do with the ''vehicle'' datatype I typed in JustAClass?Code:
class JustAClass {
Vehicle haha; //Why is this posible?! What can I do with it?
}
class Vehicle {
public static void main(String args[]) {
}
}
I did a Google Search, and unfortunately didn't find enough helpful information. Does anybody know the name of this ''using a class as datatype''?
Thank you.

