How to inherit attributes from 2 different classes in JAVA?

Asked

Viewed 200 times

0

UML

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.

  • 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.

  • Java does not support Multiple Inheritance, I suggest you try modifying your class architecture to suit your need

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.