Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture introduces the concept of polymorphism in C++ by exploring how different types of characters, such as Magicians, Warriors, and Thieves, can interact through inheritance and dynamic link resolution. It covers the inheritance hierarchy, method invocation based on the real nature of instances, and the implementation of polymorphism through virtual methods.