• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can child class have more parents in UML

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks & Regards,
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic