"What? You figured that out already?! You can't just go and complete all my tasks. It seems to me that you're just fooling around. Here's a new task for you. It's very difficult. Pay attention and arrange everything systematically. Read the literature, and ask your friends! Nobody dares deceive the Great Diego!"
Let's create an international chicken factory. We'll fill it with chickens from all over the world. Create a list that indicates each hen's nationality and we'll track how many eggs they lay each month. How do you do that? Using abstract classes and inheritance, of course.
GO TO FULL VERSION