The objective of the " CodeLikeMe C++ Programming Interview " series is to give you a set of common questions that you will be asked in an interview for a job that involves C++ programming such as game development. I will also explain the answers with extra details and code examples. Even if you are a complete beginner who wants to learn C++, this series will be helpful as I am going to explain things as simple as possible assuming the viewer is a beginner. I will cover the topics ranging from basic definitions, OOP concepts, best practices, advanced algorithms, optimizing algorithms, time and memory complexity, and all the things relevant here. Hope this would help you to get start your C++ programming career.
In this episode, I will be focusing on the OOP concept polymorphism related questions that you can be asked in an interview. I will explain these things along with suitable code examples written in C++ along with the points you need to include in your answer.
Polymorphism means, the ability of any data to be processed in more than one form and can be categorized in following manner.
1. Compile time polymorphism / Early binding/Static binding
- Function overloading
- Operator overloading
2. Run-time polymorphism / late binding/ Dynamic binding
- Function overriding