End of file expected error in a very simple program
HiI am started using .net programming languages and getting end of file error message when I execute the following simple inheritance program and could not find any errors
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cscodes
{
class Program
{
static void Main(string[] args)
{
void shape ()
{
Console.WriteLine("Buildingshape is square");
}
}
}
class child : Program
{
void func()
{
child c = new child();
c.shape();
}
}
}