using System;

namespace ConsoleAppDemo
{
    class BaseClass
    {
        public void Fun()
        {
            Console.WriteLine("BaseClass.Fun()");
        }

        public virtual void VFun()
        {
            Console.WriteLine("BaseClass.VFun()");
        }
    }
    class SunClass : BaseClass
    {
        public new void Fun()
        {
            Console.WriteLine("SunClass.Fun()");
        }

        public override void VFun()
        {
            Console.WriteLine("SunClass.VFun()");
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            BaseClass bc = new SunClass();
            bc.Fun();
            bc.VFun();
        }
    }
}