9. What will be the output of the following code snippet?
class emp
{
public string name;
public string address;
public void display()
{
Console.WriteLine("{0} is in city {1}", name, address);
}
}
class Program
{
static void Main(string[] args)
{
emp obj = new emp();
obj.name = "Shyam";
obj.address = "Kathmandu";
obj.display();
Console.ReadLine();
}
}