Untitled
public text v1 · immutablei wonder, is it possible to create class with 'hidden typecast' or smth, w/o using methods or fields
like here:
SomeClass x = New SomeClass(,,,);
int y = x; // x will return int
String z = x; // x return String
i wonder, is it possible to create class with 'hidden typecast' or smth, w/o using methods or fields
like here:
SomeClass x = New SomeClass(,,,);
int y = x; // x will return int
String z = x; // x return String