Code Trivia #4
- by João Angelo
Got the inspiration for this one in a recent stackoverflow question.
What should the following code output and why?
class Program
{
class Author
{
public string FirstName { get; set; }
public string LastName { get; set; }
public override string ToString()
{
return LastName + ", " + FirstName;
…