Value of one class not updated in another . Inheritance?

Printable View