โ Back to Classes
Question 38
Static Member Function
Static Member Function
Create a class MathHelper with a static function add(int a, int b) that returns the sum. Do NOT write a main function.
Expected Output:
8
Topics:
Classes
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.