programming

Type Erasure

Recently I came across a programming pattern that has been there for a while called Type Erasure Design Pattern. It has been very useful if abstracting types across multiple layers. I found it very useful when designing a graphics engine that we are creating at work.

Virtual Functions III

From the previous post you would’ve understood that declaring a pure virtual function converts a class to an abstract class. This opens numerous doors and gives us infinite options for structuring our project. We can get rid of cluttered or messed up code flow and enforce elegance to the code!

Virtual Functions II

In the previous post we saw one basic use-case of a virtual function. Here is another awesome use case involving the virtual keyword.

Virtual Functions I

Have you ever come across the keyword virtual in a CPP class and felt that you haven’t fully understood it yet? In this post, I’ll try to explain one basic use case where virtual helps us. This is a three part series. The links are Part-II & Part-III.

Back to Top ↑