when an object of child class is created,first the parent class constructor is executed and then the child class.I hav a doubt as to which status function will be called n y..and also which destructor is called first.Thnx in advance for the help.
Constructors are called in order from most base to most derived class. Destructors are backward.
In your example Status() function from Parent object would be called by Parent constructor then Childs Status() function by Child constructor. Then Childs Status() function by Child destructor and then Parent Status() by Parent destructor
You could see that if you run your code (after fixing several errors in it)