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! While you're at it, check out some resources Treehouse students have shared here.

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

Android Build an Interactive Story App The Model-View-Presenter Pattern Creating the Story

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...

1 Answer

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.