Relative Content

Tag Archive for c#classoop

Access parent class object formed by calling child class

On creating an object of child class, the constructor of the child class is called which first initiates the call for the parent class’s constructor. Since the constructor of the parent class is called so there must be an object of parent class corresponding to that child class object. How to access that parent class object.