These are really basic questions..
Well, static constructors are called once when application starts. It is helpful to initialize static variables and call static methods.
Private constructors is not often used. It actually restricts objects to be created only from within nested classes and you cant use the constructor to create objects from outside.
Abstract classes are those which have few methods declared and undefined. So abstract classes can also cannot be initialized.
Sealed classes cannot be inherited.
I hope you are clear now.
Constructor chaining means calling another constructor from within a constructor:
public Chaining(int a, int b) : this(a)
{
}
something like this, as it calls
public Chaining(int a)
{
]
from the other constructor.
www.abhisheksur.com
Gayathri, if this helps please login to Mark As Answer. | Alert Moderator