File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes can child class have more parents in UML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "can child class have more parents in UML" Watch "can child class have more parents in UML" New topic

can child class have more parents in UML

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
is it true that generlization in UML can have more than one parent ?
But in java it doesn't dupport multiple inheritance?

i read this from below link

Please read 4 th paragraph
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
It's true. UML specification doesn't prohibit one classifier to have more than one Generalization to another classifier.

UML is not only for programming languages, it is a unified modeling language that can be used to model anything.
In addition some programming languages like C++ support multiple inheritance.

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
UML as a language isn't specific to any particular programming language. It is up to the UML user to design according to a particular programming language's limitation or strength.
For example a multi-inheritance pattern may not be allowed in Java, but it is perfectly valid in C++
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396

Read this article which discussing bit on this topic, even-though bit old.

Thanks & Regards,

Open Source leads to Open Mind
It is sorta covered in the JavaRanch Style Guide.
subject: can child class have more parents in UML
Similar Threads
UML Tool "code generation"
Good book for JCert/IBM486 UML Exam
Am I missing the point of UML tools?
Future of UML with OO Concepts
Learning UML