Hi,
I'm using 2 classes, Child and Parent.
In parent class, there is the abstract method setData() which is implemented in child class.
My problem is... setData() instantiates the
String s, but when button is pressed, it says s is null.
However, if I invoke setData() in Child constructor whilst leaving Parent constructor empty,
then a button press says s is not null, which is what I want, but I really need it to work first way.
Code is below:
I don't understand why this is happening, can anyone help?
Thanks