Buckys C++ Programming Tutorials - 55 - Introduction to Polymorphism
Loading...
13,720
Loading...
Top Comments
see all
All Comments (55)
-
It should have been private, with a protected setter & getter accessor.
-
@Cezarijus what if the function was private?
-
@jackkadez you can't access the inherited members with that.
-
Am I right
-
I get it, the pointer is used for when you need to access the inherited members from the subclass in another class or the main function
-
I really love the way you tell it man..no doubt!!
-
@SCHUCH512 probably it was just a bad burrito... :(
-
Uh... I'm pretty sure ninjas are more powerful than monsters.
-
is the polymorphism in c++ has anything to do with polymorphism in algebra ?
Loading...
Feeling some C++ Game Development videos.
SCHUCH512 9 months ago 56
you could just :
Ninja n;
n.attackPower(26);
no need of the pointer.
Cezarijus 9 months ago 24