Example output
class Sum:
def __init__(self, num1, num2):
self.num1 = num1
self.num2 = num2
def calculate_sum(self):
return self.num1 + self.num2
# Create an instance of the Sum class
sum_instance = Sum(5, 3)
# Perform the sum calculation
result = sum_instance.calculate_sum()
# Display the output
print("The sum of", sum_instance.num1, "and", sum_instance.num2, "is:", result)