Why is C# statically typed?

Posted by terrani on Stack Overflow See other posts from Stack Overflow or by terrani
Published on 2009-05-13T17:05:27Z Indexed on 2010/05/19 4:00 UTC
Read the original article Hit count: 246

Filed under:
|
|

I am a PHP web programmer who is trying to learn C#.

I would like to know why C# requires me to specify the data type when creating a variable.

Class classInstance = new Class();

Why do we need to know the data type before a class instance?

© Stack Overflow or respective owner

Related posts about c#

Related posts about static-typing