In object oriented programming, polymorphism represents possibility to have multiple implementations of the same functions. You can see a simple example of polymorphism in “C++ overloading”. A function with the same name can have different behavior according to the context of its call. The most interesting concepts of polymorphism are related to inheritance. A pointer of base class can be used as pointer of derived class.
polymorphism
最新推荐文章于 2024-09-24 12:23:31 发布