i am not native english speaker so please be considerate
So to summerise my cases:
if there no eat method in pie 'but there is one in food then it will call the method from food because it inherits food class.
if there is eat in pie then it will call the method from pie.
if there is no eat method in food then it wont compile because y is of type food.
if there is no eat in pie but there is one in food then it will call the method eat in food.
donaldth smithts wrote:i am not native english speaker so please be considerate
I am being considerate. I'm simply asking you to do the same.
Even though you are not a native speaker, I'm sure you learned the basics of capitalization and punctuation. I don't expect your grammar to be perfect, but it is fair to expect you to try. I politely asked you to make an effort to write correctly, briefly told you why, and provided a link with more information. You do not seem to be making an effort however, so I will bow out now and let others help you.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop