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 covers fundamental concepts of object-oriented programming, focusing on inheritance in C++. Topics include access levels, member declaration, and changing access levels during inheritance. The lecture also discusses multiple inheritance, access restriction, and the impact of inheritance type on visibility. A case study involving dragons and hydras is used to illustrate these concepts, including code completion exercises and simulating battles between creatures. The lecture emphasizes the importance of avoiding code duplication and attribute masking through proper inheritance design.