Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Organizing Classes into Inheritance Hierarchies

 
Mikie Smith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's your first pass it?
 
Mikie Smith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic