In reply to shailendradwivedi:
There is only one variable called ‘a’ and you set it to 100 when you called my_child.display(). If you reverse the order of calls to display(), you would get the result you are looking for.
In reply to shailendradwivedi:
There is only one variable called ‘a’ and you set it to 100 when you called my_child.display(). If you reverse the order of calls to display(), you would get the result you are looking for.