C# Programming
09-16-2010, 03:51 PM
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class A
{
}
class B:A
{
}
class c
{
static void Main(string[] args)
{
B obj1 = new A();
}
}
}
will it execute ?? and if not can anyone give me the exact answer ??? i am new to C#..!!
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class A
{
}
class B:A
{
}
class c
{
static void Main(string[] args)
{
B obj1 = new A();
}
}
}
will it execute ?? and if not can anyone give me the exact answer ??? i am new to C#..!!