After runing the codes below, it will excute the parent's code first, and
then the child's code.
The result is
I am father
I am Child
How can I let it to execute the child's code first then the parent's? like
I am Child
I am father
----------------------------------------------------------------------
using System;
class UsingBase
{
static void Main()
{
aChild myaChild = new aChild() ;
Console.Read() ;
}
}
class aFather
{
public aFather()
{
Console.WriteLine("I am Child") ;
}
}
class aChild : aFather
{
public aChild()
{
Console.WriteLine("I am father") ;
}
}