You can't and it seems like you're doing something wrong if you need to do this. However, if you really want to pursue the logic you've outlined, why don't you do the following:
Add a String member to A and in a constructor, assign it. Something like this: