Skip to content

Enhancement: Refactor calculator from functional to object-oriented design#29

Open
ujala100 wants to merge 2 commits into
sohailburki01:mainfrom
ujala100:refactor-calculator-oop-issue-16
Open

Enhancement: Refactor calculator from functional to object-oriented design#29
ujala100 wants to merge 2 commits into
sohailburki01:mainfrom
ujala100:refactor-calculator-oop-issue-16

Conversation

@ujala100

@ujala100 ujala100 commented May 4, 2026

Copy link
Copy Markdown

#28 📌 Overview
Refactored the calculator from a functional approach to an object-oriented design.

🔧 Changes Made

  • Introduced Calculator class
  • Implemented methods: add, subtract, multiply, divide, square root
  • Improved structure and readability

🎯 Benefits

  • Cleaner code organization
  • Easier maintenance
  • Better scalability

🔗 Issue
Fixes #16

ujala100 added 2 commits May 4, 2026 08:39
📌 Overview
Refactored the calculator from a functional approach to an object-oriented design.

 🔧 Changes Made
- Created a Calculator class
- Added methods: add, subtract, multiply, divide
- Stored state inside the class

 🎯 Benefits
- Cleaner and more organized code
- Easier to maintain
- Improved scalability for future extensions

🔗 Issue
Fixes sohailburki01#16
📌 Overview
Refactored the calculator from a functional approach to an object-oriented design.
 🔧 Changes Made
- Created a Calculator class
- Added methods: add, subtract, multiply, divide
- Stored state inside the class

 🎯 Benefits
- Cleaner and more organized code
- Easier to maintain
- Improved scalability for future extensions

 🔗 Issue
Fixes sohailburki01#16
@ujala100 ujala100 changed the title Refactor calculator oop (Fixes issue 16) Refactor calculator oop (Fixes issue#16) May 4, 2026
@ujala100 ujala100 changed the title Refactor calculator oop (Fixes issue#16) Enhancement: Refactor calculator from functional to object-oriented design May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Refactor calculator from functional to object-oriented design

1 participant