Question: Define a student class that supports the following fields. (Choose your own names for the fields/properties) id - int name - string grade - char
id - int
name - string
grade - char
---
Properties:
ID - get
Name - get/set
Grade - get
---
Methods:
Constructor - Takes and int for id and string for name.
Set Grade (float score) - Sets the grade to a letter value based upon score, use a standard scale.
To String () - override To String to return Name + ID + Grade as a comma separated list
---
Main creates an object, set the grade and print it out using To String ()
C#
Step by Step Solution
3.39 Rating (168 Votes )
There are 3 Steps involved in it
Using System namespace Application class Student private int id private string name private ch... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1019-B-C-A-S-S(1345).docx
120 KBs Word File
