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

Phillip Seryazi
Phillip Seryazi
2,500 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.