Implementing parent class methods with several children class in Java

前端 未结 1 835
小蘑菇
小蘑菇 2021-01-28 22:36

I have a class (let\'s call it A) that is extended by several children class (B, C, D, etc.).

In each child class, t

相关标签:
1条回答
  • 2021-01-28 23:06

    In each children class, there are specific methods that I'd like to be accessible from an instantiation of the parent class A.

    That's not the point of inheritance. Even if you could do this, it shows that your design is broken.

    0 讨论(0)
提交回复
热议问题