aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Organizing Classes into Inheritance Hierarchies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Organizing Classes into Inheritance Hierarchies" Watch "Organizing Classes into Inheritance Hierarchies" New topic
Author

Organizing Classes into Inheritance Hierarchies

Mikie Smith
Greenhorn

Joined: Sep 14, 2012
Posts: 4
Organize each of the following sets of items into inheritance hierarchies of classes. Arranging potential classes into inheritance hierarchies

#1
Schedule, Tour Bus, Bus Route, Bus Vehicle, Actual Trip, Regular Schedule Trip, Charter, Unschedule trip, schedule trip, ...
I put the list above in the order below. Not sure whether the inhetitance hierachies is right? It's my best guess.

Schedule
Regularly Scheduled Trip
BusRoute
ActualTrip
Chartered
Scheduled Trip
UnscheduledTrip
BusVehicle
LuxuryBus
TourBus

#2
Edition of book, Copy of book, Volume, Issue of newspaper, Magazine, Work of literature, Newspaper, Issue of magazine, Publication, Chapter, Author, Publisher, Copy of issue of magazine

Here's my guess:
Edition of book
Chapter
Publication
Publisher
Volume
Author
Copy of book
Magazine
Issue of magazine
copy of issue magazine
publisher
New paper
Issue of new paper
publisher

I am stuck with #2. Please help.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

What's your first pass it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mikie Smith
Greenhorn

Joined: Sep 14, 2012
Posts: 4
Here's my first pass on this

Book
Edition of book
Publication
Publisher
Volume
Author
Chapter
Copy of book
Magazine
Issue of magazine
copy of issue magazine
publisher
New paper
Issue of new paper
publisher

Mikie Smith
Greenhorn

Joined: Sep 14, 2012
Posts: 4
Mikie Smith wrote:Organize each of the following sets of items into inheritance hierarchies of classes. Arranging potential classes into inheritance hierarchies

#1
Schedule, Tour Bus, Bus Route, Bus Vehicle, Actual Trip, Regular Schedule Trip, Charter, Unschedule trip, schedule trip, ...
I put the list above in the order below. Not sure whether the inhetitance hierachies is right? It's my best guess.

Schedule
Regularly Scheduled Trip
BusRoute
ActualTrip
Chartered
Scheduled Trip
UnscheduledTrip
BusVehicle
LuxuryBus
TourBus

#2
Edition of book, Copy of book, Volume, Issue of newspaper, Magazine, Work of literature, Newspaper, Issue of magazine, Publication, Chapter, Author, Publisher, Copy of issue of magazine

Here's my guess:
Book
Edition of book
Publication
Publisher
Volume
Author
Chapter
Copy of book
Magazine
Issue of magazine
copy of issue magazine
publisher
New paper
Issue of new paper
publisher

I am stuck with #2. Please help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Organizing Classes into Inheritance Hierarchies