We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Abstract Classes - Polymorphism
Abstract Classes - Polymorphism
Sort by
recency
|
342 Discussions
|
Please Login in order to post a comment
Abstract Classes and Polymorphism are two fundamental concepts in object-oriented programming (OOP) that work together to create flexible, reusable, and maintainable code. Cricadda
I just finished this challenge and added detailed comments in my solution. for example I wrote: * why we use a doubly linked list + map * how virtual functions and abstract classes are applied * step-by-step helper functions for LRU logic
I’ve shared it on GitHub: https://github.com/habibma/LRUCache-Cpp
Here is my solution using std::list(follows solution posted here by kubalak_2k18):
It allows one interface to be used for different underlying data types or implementations. Cricbet99
This was a great exercise to understand how abstract classes and polymorphism work in C++. Cricbet99 club register