Back to Browse

HackerRank Solution: Hotel Prices in C++

3.0K views
Mar 3, 2020
5:56

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

Download

1 formats

Video Formats

360pmp49.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

HackerRank Solution: Hotel Prices in C++ | NatokHD