DEV Community

Adhyan Jain
Adhyan Jain

Posted on

1 1 1 1

πŸš€ Week 11: Mastering Operator Overloading, Templates & STL in C++

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

  1. Time Incrementer – Overloaded ++ to adjust departure time
  2. Matrix Math – Multiplication and transpose operations
  3. Matrix Negator – Unary - to invert matrix elements

πŸ”Ή Day 72 – Inheritance & Virtual Functions

  1. Population Growth Calculator – Virtual calcRate()
  2. Time Format Converter – Conversion between hours, minutes, and seconds
  3. Reservation Discount System – Age-based pricing

πŸ”Ή Day 73 – Abstract Classes & Use Cases

  1. Meal Price Estimator – Polymorphism with calculatePrice()
  2. Shop Inventory Manager – Item management using virtual functions
  3. Experiment Analyzer – Analyzing experimental data with polymorphism

πŸ”Ή Day 74 – Practical Polymorphism

  1. Item Cost Calculator – Discounts based on item type
  2. Banking System – Inheritance for different account types
  3. Vehicle Cost Tracker – Calculate travel time/cost across modes

πŸ”Ή Day 75 – Templates

  1. Stack Handler – Operations for int and float types
  2. URL Tracker – Indexing URLs with function templates
  3. Laptop Model Manager – Track models using function templates

πŸ”Ή Day 76 – Smart Array Operations

  1. Composite Number Filter – Remove primes from list
  2. Array Max Finder – Find largest/second-largest elements
  3. Odd Index Printer – Print elements at odd indices

πŸ”Ή Day 77 – STL & Template Utility Apps

  1. Construction Inventory System – Update/display material info
  2. STL List Handler – Sort/remove duplicates from std::list
  3. 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

Heroku

Amplify your impact where it matters most β€” building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)