static void Main(string[] args) { Person person = new Person("David", "Barnes", 25); Person person2 = new Person("Joe", "Somebody", 85); person.PrintFullName(); person2.PrintFullName(); person.PrintFullName(); PersonCollection personCollection = new PersonCollection(); personCollection.addPerson(person); personCollection.addPerson(new Person("Not", "Declared First", 34)); Console.WriteLine(personCollection.getPersonCollectionToString()); Console.WriteLine("Demo to show how branching works"); Console.WriteLine("Here is another line"); Console.WriteLine(); Console.WriteLine("Different stuff"); Console.WriteLine("Moar. All the different stuff"); }
static void Main(string[] args) { Person person = new Person("Andy", "Cullen", 26); person.PrintFullName(); person.PrintFullName(); person.PrintFullName(); }
static void Main(string[] args) { Person person = new Person("Tiffany", "Pape", 34); person.PrintFullName(); person.PrintFullName(); person.PrintFullName(); }
/// <summary> /// Main. /// </summary> /// <param name="args">Command-Line Args</param> static void Main(string[] args) { Person person = new Person("Aa", "Aaa", 20); Person personB = new Person("Bb", "Bbb", 300); Person personC = new Person("Cc", "Ccc", 5); person.PrintFullName(); personB.PrintFullName(); personC.PrintFullName(); PersonCollection personCollection = new PersonCollection(); personCollection.AddPerson(person); personCollection.AddPerson(new Person("Not", "Declared First", 34)); Console.WriteLine(personCollection.GetPersonCollectionToString()); }
static void Main(string[] args) { Person person = new Person("John", "Harvey", 25); Person person2 = new Person("Joe", "Somebody", 85); person.PrintFullName(); person2.PrintFullName(); person.PrintFullName(); PersonCollection personCollection = new PersonCollection(); personCollection.addPerson(person); personCollection.addPerson(new Person("Not", "Declared First", 34)); Console.WriteLine(personCollection.getPersonCollectionToString()); }
static void Main(string[] args) { Person person = new Person("David", "Barnes", 25); person.PrintFullName(); PersonCollection personCollection = new PersonCollection(); personCollection.addPerson(person); personCollection.addPerson(new Person("Not", "DeclaredFirst", 34)); Console.WriteLine(personCollection.getPersonCollectionToString()); Console.WriteLine("Branchsona! Ziodyne!"); Console.WriteLine(""); Console.WriteLine("Branch Mage used Branchraga."); }
static void Main(string[] args) { Person person1 = new Person("Seynabou", "Diagne", 24); Person person2 = new Person("Abou", "Mbodji", 27); person1.PrintFullName(); person1.PrintAge(); Console.WriteLine(); person2.PrintFullName(); person2.PrintAge(); Console.WriteLine("\n\n"); person1.Identity(); Console.WriteLine("\n"); person2.Identity(); Console.ReadLine(); }
static void Main(string[] args) { Person person = new Person("Andrejs", "Tomsons", 23); Person person2 = new Person("Joe", "Somebody", 85); person.PrintFullName(); person2.PrintFullName(); person.PrintFullName(); PersonCollection personCollection = new PersonCollection(); personCollection.AddPerson(person); personCollection.AddPerson(new Person("Not", "Declared First", 34)); Console.WriteLine(personCollection.GetPersonCollectionToString()); Console.WriteLine("Branching demo"); Console.WriteLine("Another line"); Console.WriteLine("Different things"); Console.WriteLine("More Different things"); }
public void AddPerson(Person person) { personArray[lengthOfArray] = person; lengthOfArray++; }
public void addPerson(Person person) { personArray[arrayCounter] = person; arrayCounter++; }
static void Main(string[] args) { Person person = new Person("Dustin","Gibson", 29); person.PrintFullName(); }
static void Main(string[] args) { Person person = new Person("Robert","Cooley",20); person.PrintFullName(); }