static void Main(string[] args) { Person p = new Person("Dan", "Phal", 49); p.Sit(); p.Walk(100); p.Stand(); p.Birthday(); p.Walk(100); p.printInfo(); }
static void Main(string[] args) { Person p = new Person("Sebastian", "Vogel", 17); p.Sit(); p.Walk(100); p.Stand(); p.Birthday(); p.Walk(100); p.ChangeName("Garion", "Vogel"); p.ChangeNamePrompt(); p.PrintInfo(); Console.ReadLine(); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); var name = new Name { FullName = "string", FirstName = "pal" }; var steve = new Person("steve", 23, 100); steve.Walk(); steve.Eat("pizza", 800); var newCar = new Car(5); newCar.Start(steve); newCar.Accelerate(10); }