If a variable is declared as dynamic, its type can change over time. dynamic a = 'abc'; //initially it's a string a = 123; //then we assign an int value to it a = true; //and then a bool If you declare a variable as a var, once the assigned type can...

Markdown supported · ⌘↵ to post
No responses yet.