HackerRank Solution: Virtual Functions in C++

preview_player
Показать описание
Here is the solution to the Virtual Functions C++ challenge on HackerRank. In this video, I'll walk you through my working code to give a refresher on virtual functions or virtual methods in C++, as well as auto-incrementing static variables and object-oriented programming (OOP) with inheritance in C++.

Рекомендации по теме
Комментарии
Автор

On average, how long do you take to solve a HackerRank coding challenge?

nextrie
Автор

You really helped me so so much in this concept. Thank you!! You earned a new Subscriber 😊

rishichakraborty
Автор

Really awesome content. Keep uploading such quality content. Your channel will grow to great heights real soon.

HussainMustafaRA
Автор

thx a lot man, this video was really helpful;

aasifali
Автор

@nextrie Sir I have one doubt.

If I am running the loop from i=1 to i<=6 then it is giving error and on the other hand when I am doing i=0 to i<6 then it is correct why ?

Anonymous-yxwl
Автор

Why do we use static variables here??
We could have incremented the cur_id simply by pre++.

priyamgupta
join shbcf.ru