You can set the variable A in the Child constructor:
class Child extends Parent {
But I think that you better give your parents the getter and setter variable, and also set or get it from the child or parent as needed. In my opinion, this is better than manipulating the fields directly, since you can track the field for changes and perform actions if the changed data is not suitable.
Other suggestions: Learn and abide by the Java naming conventions. Your published code also has many careless errors, including typos. If you ask others to make an effort to try to help you for free, it does not require too much to ask you to do the same - try to ask a decent question with real code so as not to help you are more complicated than it should be.
source share