From the code
The inherited member x is int. However, I am redeclaring it as
String while subclassing. Is this allowed?
Also, if I make line 1 as public, I am able to change line 2 as private. Compiler doesn't complain that the member has become less accessible. Is that ok as well?