{cout<<endl<< ”count=” <<count;}void main(){example d;d.display();}4.WAP that defines a class complex (defining a complex number).Write a friend function that takes two argument of class complex and returns a complex number?PART B5.How is dynamic initialization of objects achieved?6.Distinguish between the following two statementsTime T2(T1);Time T2=T1;7.WAP to show the order of invocation of the constructor and destructor.8.“Constructor and Destructor are the two sides of a coin”. Explain with an illustration.