Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started