โ Back to Classes
Question 213
Student Class
Student Class
Create a classStudentwith a constructor taking a name and a score, plusGetName()andGetScore()methods. Do NOT write a Main method. For Student("Sam", 88) the program prints 'Sam: 88'.
Expected Output:
Sam: 88
Topics:
Classes
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.