CJCoding With Joseph
15per day

Roster Class

Create a class Roster backed by a List<string> with an Add(string name) method and a Contains(string name) method returning true/false, plus a Size() method. Do NOT write a Main method.

After adding 'Mia' and 'Sam', Contains('Sam') is True and Size() is 2.

Expected Output:

True
2
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.