Apologies for the delay in posting this—exams kept me busy. Finally catching up!
This will be the last post of my C++ learning progress. Stay tuned for the next topic I'll pick!
This week, I delved deep into operator overloading, inheritance, virtual functions, templates, and STL containers in C++. Here's a quick recap of what I worked on during Days 104–110.
🔹 Day 71 – Operator Overloading
-
Time Incrementer – Overloaded
++
to adjust departure time - Matrix Math – Multiplication and transpose operations
-
Matrix Negator – Unary
-
to invert matrix elements
🔹 Day 72 – Inheritance & Virtual Functions
-
Population Growth Calculator – Virtual
calcRate()
- Time Format Converter – Conversion between hours, minutes, and seconds
- Reservation Discount System – Age-based pricing
🔹 Day 73 – Abstract Classes & Use Cases
-
Meal Price Estimator – Polymorphism with
calculatePrice()
- Shop Inventory Manager – Item management using virtual functions
- Experiment Analyzer – Analyzing experimental data with polymorphism
🔹 Day 74 – Practical Polymorphism
- Item Cost Calculator – Discounts based on item type
- Banking System – Inheritance for different account types
- Vehicle Cost Tracker – Calculate travel time/cost across modes
🔹 Day 75 – Templates
-
Stack Handler – Operations for
int
andfloat
types - URL Tracker – Indexing URLs with function templates
- Laptop Model Manager – Track models using function templates
🔹 Day 76 – Smart Array Operations
- Composite Number Filter – Remove primes from list
- Array Max Finder – Find largest/second-largest elements
- Odd Index Printer – Print elements at odd indices
🔹 Day 77 – STL & Template Utility Apps
- Construction Inventory System – Update/display material info
-
STL List Handler – Sort/remove duplicates from
std::list
- Table Generator – Print multiplication table for an array element
🏁 Key Takeaways
✔️ Focused on operator overloading, templates, and polymorphism
✔️ Built real-world applications with inheritance and STL
✔️ Gained hands-on experience in generic programming using templates