-1

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.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38

1 Answers1

-3

You can use var keyword. Its implicitly type keyword. You can read more about that here

Sanjay Panchal
  • 540
  • 2
  • 8
  • 20