Is it possible to do something like this:
tybeVariable = Double;
typeVariable newDoubleVariable = 5;
I want to define a variable which will contain a type itself and then to initialize objects with it.
Is it possible to do something like this:
tybeVariable = Double;
typeVariable newDoubleVariable = 5;
I want to define a variable which will contain a type itself and then to initialize objects with it.
You can use var keyword. Its implicitly type keyword. You can read more about that here