Question: In C# Create the student class with the following features: a . A non - static string list called courses b . A non -
In C#
Create the student class with the following features:
a A nonstatic string list called courses
b A non static sting called name
c A default constructor which sets name to your name and adds IS to courses
d A one parameter constructor with an int parameter. Th condtructor allows the user to enter in as many courses as the integer parameter. Add each item entered to the courses list
e a non static method called studentDetails which displays the name and all the courses of the calling student.
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
