bezdna.su — the best quotes and jokes from the abyss!



[ + 33 - ]
 03.10.2013

xxx:Maybe the question is not related to the diploma?=))
Aaa : go
There is a pen and a writer, both can write. Is this polymorphism?
AAA: I think I can say this:
1) Explain what you put into the meaningful filling "the writer writes"?
2) if he writes - leaves a mark, like a pen leaves a mark from ink, that is, the version that the writer writes with his blood, as wrote his last poem before suicide Yesenin, that is. He pierced himself, blood flowed, and he wrote a poem like a pencil. In this case, if you define a class - something writing, then both the handset and the writer can act as descendants of this class, then polymorphism IS.
3) otherwise - the writer writes than that, i.e. aggregates the writing machine - the same pen, and these two classes of the "pen" and "writer" cannot be linked by a hierarchical connection in the sense of inheritance. There is no polymorphism here.
Source: http://bash.im
Eng

The best quotes and jokes from the bezdna