OOP Question re. private variables and extending classes
Perhaps this is a silly question, but here goes:
I'm working with a class (let's call it Class C) from a library that I'm importing in. C has many variables that are public, but there's one that's private in there (Widget W).
My issue is that Widget W is initialized in a certain way that I'm not fond of, and this is causing issues for me. I'd ideally like a version of Class C exactly as it is except for that one line where Widget W is initialized to be dictated by me instead.
What's the best way for me to do this? Can I do it at all, given that W is private?