Hey All,
As we know that we CANNOT create the instance of abstract class
.
I just want to know that if we create the array of abstract class, it will sure work.
E.g.
public abstract class Creator
{
public abstract void DoSomething();
}
Creator creator = new Creator(); // this will give you compilation error!
Creator[] creator = new Creator[2]; // this will SURE work and will NOT give you compilation error.
Can anybody please let me know that why this is happening and why it is working with array initialization?
Thanks in advance.