Posts

Showing posts from February, 2019

Polymorphism

Image
While programming in C, we get close to the system.  In this course, we'll use C to examine how building-blocks are built and gain a deeper understanding of polymorphism. Let's explore its internals. Polymorphism It means 'occurring in different forms'. It is an indispensable aspect of modern software production. For example, doctors want different forms of imaging for different parts of the body; developers want different forms of environments for testing and production -  Code often needs to run in different contexts. And these contexts keep growing over time. There are many ways to realize these 'different forms' . Let's look at a trivial way, which doesn't use polymorphism. Suppose we had a row of different heavy artillery machines. They look alike, but are made by different companies. Each company has provided its own function to fire the projectile. For example, the Howitzer equipment has a function called ' howitzer_v1_fire ', wh