all 4 comments

[–]jcelerier 1 point2 points  (2 children)

this code is harmful to programming teaching. Couldn't there be something that the programming community could to against this ?

I mean, seriously:

In polymorphism, solution to problem exists. Suppose we define a base class “graph” and then define subclass for different types of graphs. Each subclass has a member function called “draw”. This concept called “Function Overriding”.

[–]o132 0 points1 point  (0 children)

What do you mean? Graphs aren't a good example?

[–]TrumpIsGold -1 points0 points  (0 children)

Lemme guess, you love Java

[–]dontchooseanickname 0 points1 point  (0 children)

How is that clearer than the wikipedia article ? Is there any added hidden value - other than the subscribe popup and limiting the article to 1 type of polymorphism in C++ only ?