Manoj Bisht

Manoj Bisht

  • NA
  • 135
  • 0

Difference between Instance and Object in C# and ..

Aug 26 2008 6:05 AM

Halo Frnds,

What is the difference between Instance and Object in C#

and

class A
{
public virtual void get()
{
Console.WriteLine("Hello");
}
}
class B:A
{
public override void get()
{
Console.WriteLine("Fine");
}
}



Ist Method
A e = new B();
e.get();

IInd Method
B e = new B();
e.get();

Difference between in Ist Method and IInd Method of intializing the object of the the Class A


Answers (6)