Question: Perform these actions and create a console app that includes the following: Make the Employee class take a generic type parameter. Add a property to
Perform these actions and create a console app that includes the following:
Make the Employee class take a generic type parameter.
Add a property to the Employee class called "things" and have its data type be a generic list matching the generic type of the class.
Instantiate an Employee object with type "string" as its generic parameter. Assign a list of strings as the property value of Things.
Instantiate an Employee object with type "int" as its generic parameter. Assign a list of integers as the property value of Things.
Create a loop that prints all of the Things to the Console.
Add comments to each line or block of your code to explain what it does exactly, so that another developer could read and understand your code.
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
