Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
good learner161 Points
i am confused!!!
What is the need of another Story class when we can do all the stuff in page class and make it as a data model...
Phillip Seryazi2,631 Points
Hi goodlearner, i am sure there are many ways of doing this, but graphically if you think about story books in real life they have pages in them so having a story class facilitates having multiple stories and the pages class should be a subclass of the story class, its just good code composition really. copy and paste from real life.