In Week 10, I wrapped up the 100 Days of Code milestone with advanced Object-Oriented Programming concepts in C++. This week was all about operator overloading, function templates, virtual functions, and even class templatesβall applied in real-world use cases like billing systems, calculators, and booking apps.
πΉ Day 64 β Operator Overloading with Real-Life Classes
-
Fraction Adder β Adds two fractions using overloaded
+
operator -
Velocity Calculator β Overloads
*
to compute final velocity usingv = u + at
-
Weight Tracker β Increments student weight with
++
using friend function
πΉ Day 65 β Inheritance & Virtual Functions in Practice
- Item Billing System β Calculates total with discounts using base & derived classes
- Sleep Tracker β Compares weekday vs weekend sleep duration
- Student Grade System β UG and PG grade evaluation with polymorphism
πΉ Day 66 β More Virtual Function Use-Cases
-
Power Evaluator β Calculates
a^b
andb^a
using pure virtual functions - Hotel Room Billing β Calculates cost for single/double rooms with rules
- Transport Time Calculator β Computes time based on travel modes and locations
πΉ Day 67 β Applying Inheritance in Utility Tools
- Arithmetic Operator Class β Virtual functions for add, subtract, multiply, divide
- Electricity Bill by Appliance β Calculates energy usage across devices
- Alphabet Game Scorer β Adds/subtracts score for upper/lowercase letters
πΉ Day 68 β C++ Templates in Action
- Value Swapper β Swaps float and double using class templates
- Bank Interest Calculator β Template class for computing yearly interest
- Derived Class Template Swap β Uses derived class to swap values with formatting
πΉ Day 69 β STL-Based Challenges
- Inventory Merger β Merges and sorts two batches of item IDs
- List Cleaner β Removes all instances of a target number
- Unique Sum Calculator β Computes sum of unique integers with size constraint
πΉ Day 70 β Structs, Templates & Booking Systems
- Compatibility Checker β Compares age, height, and education using structs
- Booking Revenue Calculator β Uses function templates to calculate revenue
- Audi Test Drive Slot System β Checks and books available test drive dates
π Key Highlights
β
Explored operator overloading for intuitive operations
β
Applied class and function templates for generic coding
β
Used inheritance and virtual functions in over 20+ practical projects
β
Hit the 100 Days of Code milestone with consistent learning and building
π Looking Ahead
Moving forward, Iβll focus on building structured C++ projects that combine all the concepts learnedβtemplates, inheritance, polymorphism, and file handling. Excited to begin architecting mini real-world systems!
π Catch the full journey and codebase on GitHub
π¬ Whatβs your favorite way to apply templates in real-world projects?
Top comments (0)