Category: OOP
What Is dynamic_cast in C++? Purpose Safely convert between polymorphic types at runtime Commonly used to downcast from a base class to a derived class Performs a runtime type …
Teaching Kids Programming: Videos on Data Structures and Algorithms Object Oriented Programming (OOP) is an important programming design paradigm. We model data in classes and objects. Class is the …
In OOP (Object Oriented Programming), we use inheritance to achieve the polymorphism. The factory design pattern allows you to create/manage different types of classes in a single place. Let’s …
Last week, we talked about the LED pixels. And by using the knowledge we have learned so far, we can make a pixel running on the Microbit’s LED. Last …
Design a hit counter which counts the number of hits received in the past 5 minutes. Each function accepts a timestamp parameter (in seconds granularity) and you may assume …