static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry() { Address = "123 Coder ln", City = "Westfield", State = "IN", Zip = "44850", FirstName = "Paul", LastName = "O'Connor", Age = 40, }; AddressBookEntry John = new AddressBookEntry() { Address = "456 Dirt Road", City = "Eastfield", State = "IN", Zip = "44550", FirstName = "John", LastName = "Doe", Age = 30, }; AddressBookEntry Daniel = new AddressBookEntry() { Address = "321", City = "Mishawaka", State = "IN", Zip = "44456", FirstName = "Daniel", LastName = "Schroeder", Age = 32, }; AddressBookEntry Bob = new AddressBookEntry() { Address = "789 Visual ln", City = "Northfield", State = "IN", Zip = "44660", FirstName = "Bob", LastName = "Smith", Age = 50, }; //Create 3 more Address Book entries !!DONE //Create a constructor in the AddressBook Entry where a user has to pass in //3 parameters: FirstName, LastName, Age Console.WriteLine(Paul.GetAddress()); Console.WriteLine(""); Console.WriteLine(John.GetAddress()); Console.WriteLine(""); Console.WriteLine(Daniel.GetAddress()); Console.WriteLine(""); Console.WriteLine(Bob.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry() { Address = "123 Coder pl", City = "Westfield", State = "IN", Zip = "44056", FirstName = "Paul", LastName = "O'Conner", Age = 40 }; AddressBookEntry Tommy = new AddressBookEntry() { Address = "Meridian st", City = "Indidanpolis", State = "IN", Zip = "46217", FirstName = "Tommy", LastName = "Hurly", Age = 21 }; AddressBookEntry Billy = new AddressBookEntry() { Address = "Washington st", City = "Westfield", State = "IN", Zip = "44105", FirstName = "Billy", LastName = "Hurly", Age = 23 }; AddressBookEntry Bre = new AddressBookEntry() { Address = "123 Coder pl", City = "Mcaster", State = "IN", Zip = "4305", FirstName = "Breeanna", LastName = "Elliott", Age = 21 }; Console.WriteLine(Paul.GetAddress()); Console.WriteLine(""); Console.WriteLine(Billy.GetAddress()); Console.WriteLine(""); Console.WriteLine(Tommy.GetAddress()); Console.WriteLine(""); Console.WriteLine(Bre.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry() { Address = "123 Coder Place", City = "Westfield", State = "IN", Zip = "44056", FirstName = "Paul", LastName = "O'Connor", Age = 40 }; AddressBookEntry Sue = new AddressBookEntry() { Address = "987 Coder Street", City = "Westfield", State = "IN", Zip = "44056", FirstName = "Sue", LastName = "Pickles", Age = 30 }; AddressBookEntry Jon = new AddressBookEntry() { Address = "999 Main Street", City = "Indy", State = "IN", Zip = "46220", FirstName = "Jon", LastName = "Atz", Age = 78 }; AddressBookEntry Tom = new AddressBookEntry() { Address = "234 Garden Grove", City = "San Fran", State = "CA", Zip = "66666", FirstName = "Tom", LastName = "Thumb", Age = 400 }; Console.WriteLine(Paul.GetAddress()); Console.WriteLine(Sue.GetAddress()); Console.WriteLine(Jon.GetAddress()); Console.WriteLine(Tom.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry paul = new AddressBookEntry() { Address = "123 Coder ln", City = "Westfield", State = "IN", Zip = "44056", FirstName = "Paul", LastName = "O'Connor", Age = 40 }; AddressBookEntry dave = new AddressBookEntry() { Address = "113 Hunter pl", City = "Indianapolis", State = "IN", Zip = "46202", FirstName = "Dave", LastName = "Brown", Age = 53 }; AddressBookEntry phil = new AddressBookEntry() { Address = "7934 Middlebrook ave", City = "Zionsville", State = "IN", Zip = "46019", FirstName = "Phil", LastName = "Jones", Age = 34 }; AddressBookEntry chuck = new AddressBookEntry() { Address = "9024 E Main St", City = "Whitestown", State = "IN", Zip = "46075", FirstName = "Chuck", LastName = "Nelson", Age = 48 }; Console.WriteLine(paul.GetAddress()); Console.WriteLine(paul.GetDetails()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry("Paul", "O'Connor", 45) { Address = "123 Coder pl", City = "Westfield", State = "IN", Zip = "44056", FirstName = "Paul", LastName = "O'Connor", Age = 45 }; AddressBookEntry Adam = new AddressBookEntry("Adam", "Demaree", 26) { Address = "600 N Alabama St. Apt. 1203", City = "Indianapolis", State = "IN", Zip = "46204", FirstName = "Adam", LastName = "Demaree", Age = 26 }; AddressBookEntry Lauren = new AddressBookEntry("Lauren", "Winters", 26) { Address = "1010 N Central Ave. Apt. 313", City = "Indianapolis", State = "IN", Zip = "46202", FirstName = "Lauren", LastName = "Winters", Age = 26 }; AddressBookEntry Dad = new AddressBookEntry("Trip", "Demaree", 57) { Address = "7845 E Gelding Dr. Suite 103", City = "Scottsdale", State = "AZ", Zip = "85260", FirstName = "Trip", LastName = "Demaree", Age = 57 }; Console.WriteLine(Paul.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Nathan = new AddressBookEntry() { Address = "1708 East 66th Street", City = "Indianapolis", State = "IN", Zip = "46220", FirstName = "Nathan", LastName = "Randall", Age = "39", }; AddressBookEntry Dawn = new AddressBookEntry() { Address = "1708 East 66th Street", City = "Indianapolis", State = "IN", Zip = "46220", FirstName = "Dawn", LastName = "Neumann", Age = "44", }; AddressBookEntry Lilly = new AddressBookEntry() { Address = "1708 East 66th Street", City = "Indianapolis", State = "IN", Zip = "46220", FirstName = "Lilly", LastName = "The Cat", Age = "8", }; AddressBookEntry MacGreggor = new AddressBookEntry() { Address = "1708 East 66th Street", City = "Indianapolis", State = "IN", Zip = "46220", FirstName = "MacGreggor", LastName = "The Dog", Age = "14", }; Console.WriteLine(Lilly.GetInfo()); Console.WriteLine(Nathan.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry() { Address = "123 Coder St", City = "Westfield", Zip = "44056", FirstName = "Paul", LastName = "O'Connor", Age = 40 }; AddressBookEntry Devan = new AddressBookEntry() { Address = "111 Coder St", City = "Lafayette", Zip = "47905", FirstName = "Devan", LastName = "Peetz", Age = 25 }; AddressBookEntry Steve = new AddressBookEntry() { Address = "100 Coder St", City = "West Lafayette", Zip = "47906", FirstName = "Steve", LastName = "Neal", Age = 26 }; AddressBookEntry Stuart = new AddressBookEntry() { Address = "155 Coder St", City = "West Lafayette", Zip = "47906", FirstName = "Stuart", LastName = "Bilan", Age = 24 }; Console.WriteLine(Paul.GetAddress()); Console.ReadLine(); }
static void Main(string[] args) { AddressBookEntry Paul = new AddressBookEntry() { Address = "123 Coder pl", City = "WestField", State = "IN", Zip = "44056", FirstName = "Paul", LastName = "O'Connor", Age = 40 }; AddressBookEntry James = new AddressBookEntry("James", "Handshoe", 39); AddressBookEntry Kenn = new AddressBookEntry("Kenn", "Pascascio", 33); // Create 3 more Address book entries // Create a constructor in the AddressBook Entry where a user has to pass in 3 parameters: FirstName, LastName, Age Console.WriteLine(Paul.GetAddress()); Console.ReadLine(); }