// A method is a member of a class. It has a signature and a body. The signature defines the type and number of parameters that the method will accept. // The body is a block of code that is performed when the method is called. If the method has a type other than void, all code paths through the body of the code // must end with a return statement that returns a value of the type of the method. public void SimpleMethods() { StaticVariables x = new StaticVariables(10); Console.WriteLine("x = {0}", x); if (x.RemoveLives(2)) { Console.WriteLine("Still alive"); } else { Console.WriteLine("Alien destroyed"); } Console.WriteLine("x = {0}", x); }