Object oriented

constructor code is not working and changing value in constructor is not working