Question: C# Create a class called Student, representing a student in a class. The student will have properties for: first name ( string ) , last
C# Create a class called Student, representing a student in a class. The student will have properties for: first name string last name string student number int class number int and grade string Your class should have a constructor initiating the properties. Provide a property with a get and set accessor for any instance variables. If the student number and class number are negative, the set accessor should leave the instance variable unchanged. Acceptable grades are A B C D or F Write a test app named StudentTest that demonstrates class Student's capabilities. Create two Student objects and display all properties available to the screen. Modify each object, changing the grade to another value. Then display each object's property again.
When creating the Visual Studio project, set the project name to StudentObject.
Add your name and the date as comments at the top of the code file.
Comment your code as appropriate. Review examples in the book for proper use of comments.
In the last line of program's main method, add Console.ReadKey; to stop the programming from ending automatically.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
