Set up Polymorphism

I used polymorphism to override the print out method in the parent
class of page to show the print out class in user input class