Loading

Exercise Number: 1

Parameter and Argument Passing

Scenario: Create a class Calculator that performs basic arithmetic operations.
  • Task: Implement methods for addition, subtraction, multiplication, and division that take two parameters each. Create a Main class to call these methods with different arguments and display the results.