How to inherit attributes from 2 different classes in JAVA?
Asked
Viewed 200 times
0
I am trying to inherit the attributes of the Physical and Legal classes, but I know that in Java there is no multiple inheritance. How can I use the attributes of the Physical and Legal class in the Client class?
1
There is no multiple inheritance in java.
– user28595
I recommend reading the marked topics, they explain the reasons why there is no multiple inheritance and there are also some alternative ways to it.
– user28595
Java does not support Multiple Inheritance, I suggest you try modifying your class architecture to suit your need
There is no multiple inheritance in java.
– user28595
I recommend reading the marked topics, they explain the reasons why there is no multiple inheritance and there are also some alternative ways to it.
– user28595
Java does not support Multiple Inheritance, I suggest you try modifying your class architecture to suit your need
– Alysson Chicó