> You put it into a getters file and import it into the parent class. Almost every language has features for this
Wait, what?
So you can do this in C/C++ for sure. #include is not just for imports. But Java? C#? How!
Wait, what?
So you can do this in C/C++ for sure. #include is not just for imports. But Java? C#? How!
Ruby has mixins and Python supports multiple inheritance. Go encourages composition over deep nested hierarchies.
Many main stream languages support this kind of functionality.