Flashcards in Other Deck (4)
What is implicit typing?
The compiler infers the variable type without the need of specifying it when declaring a variable. e.g: var name = "Erikson"
Does implicit type make C# a weak typed language?
No. Remains strongly typed as we can't use vars to declare method and other places where the compiler can't infer the var type.
Can I use a var variable without assigning a value?
No.. once the compiler won't be able to infer the variable type.