Defining Basic Methods
Methods are blocks of code that perform a specific task. They help organize code and make it reusable. 'void' means the method does not return a value.
void GreetUser(string name) {Console.WriteLine("Hello, " + name + "!");}GreetUser("Alice");