In reply to gordon:
Thanks a lot Gordon
You say " class_Extended contains an instance of a class_Main because it IS an instance of class_Main."
Actually class_Extended is an extended class of class_Main .
I am still confused with the explanation .