Inheritance problem (JAVA)
The variable $ob$ is an object reference variable of type $A$.  As such, it can only reference those attributes and methods defined in $A$.  The attribute $e$ is defined in $B$, not $A$, so $ob$ cannot reference $e$.  It is okay to reference $add$ because it is defined in $A$, even though it is overridden in $B$.