3
Answers

method overloading

Photo of taks kamps

taks kamps

6y
613
1
i want to Write a method called DisplayGreeting that writes "Hello, World!" to the console.
Then overload the DisplayGreeting method to allow the code to compile.
 
using System;

namespace HelloWorld
{
class Program
{


static void Main(string[] args)
{
DisplayGreeting();
string name = "Simon";
DisplayGreeting(name);
}
}

Answers (3)