// Directions: Intermediate #7-1 - Movie Theatre
// 1) Fork this fiddle to your workspace area.
// 2) Create a class representing a Movie with the following properties:
// Id : int
// Name : string
// DebutDate : DateTime
// IsFavorite : bool
// 3) Declare and instantiate a movie object.
// 4) Set all the movie properties with any values of your choice
// 5) Display Intermediate 7-1 : Created Die Hard.
// 6) Submit your dotnetfiddle link in Blackboard.
using System;
/****************************
* Create class here
***************************/
public class Movie
{
public int id;
public string name;
public DateTime debutDate = new DateTime();
public bool isFavorite;
}
public class Program
public static void Main()
// Instantiate movie object here.
Movie movie = new Movie();
// Set Properties here.
movie.id = 1;
movie.name = "Spiderman: No Way Home";
movie.debutDate = new DateTime(2021, 12, 17);
movie.isFavorite = true;
// Ouptut
Console.WriteLine("Intermediate 7-1 : Created " + movie.name);