Question: >>>>>>>>>>>>>>>Programing C#, < < < < < < < < < < < < < < < < < < < Create a Student class.
>>>>>>>>>>>>>>>Programing C#,<<<<<<<<<<<<<<<<<<<
Create a Student class. Do followings in Student class. Declare these data members: 1. a static int Count. 2. a private static readonly Random variable rnd.
private static readonly Random rnd = new Random(); 3. private string firstName, lastName, int sID, create public properties for these three data members. 4. Two constructors a). Constructor 1: public Student(string first , string last , int id) ----this constructor set values for firstName, lastName, sID, and increase Count value by 1. b). Constructor 2: public Student(string first="", string last = "") ----This constructor set values for firstName, lastName, and increase Count value by 1. ----Create StudentID by calling rnd.Next(1000,9999). ----Note this constructor is called when Student s1 = new Student(); Student s2 = new Student("Peter"); Student s3 = new Student("Morgan", "Simmons"); 5. In main() static void Main(string[] args) { List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
