Hotel Prices HackerRank solution in C++. This C++ beginner tutorial uses a HackerRank problem to explain how virtual functions work in C++ between base classes and derived classes. This video continues on the topic of inheritance and polymorphism in C++. Here, we use the "virtual" keyword to override a method from the base class in our subclass. We maintain the method signature but we change the implementation.
All HackerRank solutions on GitHub (please leave a star): https://github.com/IsaacAsante/HackerRank
Hotel Prices HackerRank problem: https://www.hackerrank.com/challenges/hotel-prices/problem