Created
May 7, 2012 12:07
-
-
Save tnngo2/2627433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Theory10 | |
{ | |
class House | |
{ | |
public string HouseName; | |
public int Members; | |
} | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// Construct a House object using object initializers. | |
House londonHouse = | |
new House { HouseName = "London Street", Members = 3 }; | |
Console.WriteLine("House Name: {0}, Members: {1} ", | |
londonHouse.HouseName, londonHouse.Members); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment