using System.Collections.Generic;
public static void Main()
CircularQueue<Car> firstQ = new CircularQueue<Car>();
public class CircularQueue<T> where T : class
private int numOfElement = 0;
private const int MAX = 10;
private T[] myQueue = new T[MAX];
Console.WriteLine("The Queue is full. Starting to overwrite from 0");
_rear = (_rear + 1) % MAX;
Console.WriteLine("Queue is empty");
_front = (_front + 1) % MAX;
public string Name { get; set; }
public int Make { get; set; }