Here I would to add my oops knowledge and more about oops.
using System;using System.Collections.Generic;... System.Text;namespace OOPS{ /// <summary> /// Example for a class which is not allowing to create a object or instance by using private constructor. /// </summary> public class PrivateConstructor { public float num = 0; /// <summary> /// If you try to create a object for this class by using default contructor it gives compile error as inaccessible due to its protection level /// because it is private constructor. /// </summary> ......