Creating the Object Model

Let's create a new class and name it with ToDoItem.cs.

As usual, the model contains attributes and behaviors inside.

class ToDoItem
{
    public string TaskName { get; set; }
    public string Priority { get; set; }
    public DateTime DueDate { get; set; }
    public bool IsDeleted { get; set; }

    public ToDoItem(string taskName, string priority, DateTime dueDate, bool isDeleted)
    {
        TaskName = taskName;
        Priority = priority;
        DueDate = dueDate;
        IsDeleted = IsDeleted;
    }
}

results matching ""

    No results matching ""