Question: In your Program.cs file, inside your Question02 namespace and outside the Program class, create a new class called Movie. In this class, you must define

In your Program.cs file, inside your Question02 namespace and outside the Program class, create a new class called Movie. In this class, you must define at least 5 properties that describe attributes that a movie has. You are free to come up with your own properties, but you must use at least one instance of each of the following data types: string, double, DateTime, List, and an enumerator of your making. Your first property must be a string MovieID, which is initialized (in the constructor) to a value that is guaranteed to be unique. The Movie class has no parameterless constructors. You must define a constructor that takes in values to initialize your 2 most important properties (you are free to select which 2 are most important). In your Movie class, override the ToString method, so that it returns a string that contains meaningful information on the object. The values in the List property must be displayed as a comma-separated list (i.e.: Value 1, Value 2, Value 3, Value N). Once you are done, write the test harness in the Main method of your Program class, ensuring your code is fully functional as per requirements. In other words, define two or three random Movie objects in your Main method, and display their information in the Console. You can create your movies freely. For full marks, ensure at least one of your properties is automatically calculated.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!