I had in my abstract class these data fields which I wanted to be inherited by my classes "Video" etc.
Then Marilyn asked:
I understand that private data fields are good for encapsulation. But you cannot inherit these. So why or how should I make my abstract class data fields private - or is it a "true question", meaning I should consciously choose to obliterate private (because, I admit, I forgot to make other data fields private in my inheriting classes).
Another thought:
I could give every of my classes its own "private
String ..."
but this is more writing effort, and I thought
it might be of the "isn't there any room for
optimization" category if I save the writing.
But maybe there is a good reason to do this which is unclear to me so far?
Any disfogging highly encouraged,
Juliane