Posts by Adrika Roy

Author Biographical Info: Not available

static_cast and dynamic_cast in C++

By Adrika Roy

In this tutorial, we will learn about static_cast and dynamic_cast in C++. We know that, in C++, we can assign one variable to another of the same type. But what happens if the dat.... Read More

How to implement polymorphism in C++

By Adrika Roy

In this tutorial, we will see what is polymorphism and then understand how to implement it in C++. Introduction to Polymorphism in C++ The word polymorphism is made up of two words.... Read More

Two water jug problem in C++

By Adrika Roy

In this tutorial, we will learn how to solve the two water jug problem in C++. PROBLEM STATEMENT: You are given two unmarked jugs with capacities x and y liters. Determine the move.... Read More