using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assignment11
{
class Dog
{
public void bark()
{
Console.WriteLine("Empty method");
}
public void bark (string agr);
Console.WriteLine ("fido is Barking")
}
class Program
{
static void Main(string[] args)
{
Dog fido = new Dog();
fido.bark();
fido.bark ("fido");
Console.Write("Hit any key to close");
Console.ReadKey(true);
}
}
}
I keep getting this error Error 2 'System.Console.WriteLine(string, params object[])' is a 'method' but is used like a 'type'