*
The moose likes Java in General and the fly likes OOAD Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "OOAD Java" Watch "OOAD Java" New topic
Author

OOAD Java

Vishva Rajput
Greenhorn

Joined: Sep 23, 2003
Posts: 5
When we implement an OOAD design in Java , is there something we wish Java had that would make this implementation easier? In other words what do we feel java should have had that would have made OOAD implementation easier. One thing i can think of is support for mulitiple inheritance???Are there more?
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
One thing i can think of is support for mulitiple inheritance???
Multiple inheritance was omitted from Java on purpose, -- it was determined that it causes more problems and confusion than it helps in OOD, so this is not a good example. Many other aspects of Java, such as exception handling, garbage collection, collections framework, Swing, not to mention the portability and the single rooted object hierarchy, are all about clarity and simplicity. Java encourages you to write OO code by its design. If you were an allien, which code would you rather extend, maintain, and support, -- C++ with its multiple inheritance and the "**&&" surrounding the object references or Java with its well thought concept of separation between the interfaces and the implementations?
[ December 05, 2003: Message edited by: Eugene Kononov ]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Eugene Kononov:
C++ with its multiple inheritance and the "**&&" surrounding the object references or Java with its well thought concept of separation between the interfaces and the implementations?

Aren't you mixing different things here? What does MI have to do with "**&&" syntax for object referencing and separation between interfaces and implementation?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
IP: Aren't you mixing different things here? What does MI have to do with "**&&" syntax for object referencing and separation between interfaces and implementation?
You are right, I did throw the syntax issue to the mix. However, it does address the original question, -- "**&&" certainly doesn't help in OOD.
 
GeeCON Prague 2014
 
subject: OOAD Java