Question #343698

  1. Create a class named Person with an instance variable named full_name. Declare one (1) constructor without a parameter and initialize the variable with a default value.

Expert's answer

public class Person
{
  public string full_name;
  public Person()
  {
    full_name = "Name";
  }
}
LATEST TUTORIALS
APPROVED BY CLIENTS