* Constructors will be executed in from parent to child sequence means first parent class constructor will be executed then after that child class constructor will be executed.
* Destructors execution order is reverse then constructors first it will execute child class destructor and then it will execute the parent class destructor.
* Static constructors are different then the normal constructors and its executes when first object of class is created it will be executed. Most of people are very confused this kind of scenario in inheritance. Here scenario will be like when the first object of child class created then it will execute the child class static constructor and then after the parent class static constructor is executed. After that it will never got executed.
Lets create a simple class which will illustrate the above worlds. First lets create a class A with constructor,destructor and a static constructor.
{
{
public A()
{
~A()
{
Read more: DotnetJaps