I am new to C#, please help me to understand the difference between the below statement:
var variable_name = new class_a(); // there is no error and is working fine
var variable_name;
variable_name = new class_a(); // this line is throwing error
when I rewrote the statement as
class_a variable_name;
variable_name = new class_a(); // this is working fine