Explain what happened in following code in c#

Is this creates 1000 person objects?

public class Person
{
   public string FirstName;  
   public string LastName;    
}

Person person;    
for(int i = 0; i < 1000; i++)
{
    person = new Person();
}


Source: oop

Leave a Reply