Polymorphism is one of the most powerful concepts in OOP (object oriented programming). It allows us to write code in terms of high level abstractions, e.g. we could send a draw message to an object of type Shape without knowing if the actual object in memory is a Square or Rectangle. The object itself would respond differently to the requested operations depending on what type it actually is.
In this task we will be exploring how to achieve polymorphic behavior in C++ through public inheritance and dynamic binding (virtual functions).
GK Digital is an online, collaborative learning platform built from the ground up to be a superior learning experience on the web. It is self-paced and yet supported by both your peers and instructors. We have reimagined what learning should be in a world full of public information such as blogs, YouTube, etc. GK Digital is professional training in the 21st century.