Class
Class is a user-defined blueprint from which objects are created. Basically, a class combines the fields(variables) and methods into a single unit. In C#, classes support advance object oriented programming concepts like inheritance, abstraction etc. Everything in C# is associated with classes and objects, along with its attributes and methods.
Console.WriteLine("CodersCapsule") - Console is a class, WriteLine is a method which has a string parameter.
Convert.ToInt32("56") - Convert is a class, ToInt32 is a method which has a string parameter.
Console.ReadLine() - Console is a class, ReadLine is a method which don't have any parameter.
Math.Pow(5,6) - Math is a class, Pow is a method which has 2 double parameters.
Before entering coding part of Class, we need to be clear with concept called Access Modifiers. Access Modifiers are keywords that define the accessibility of a member, class or datatype in a program. These are mainly used to restrict unwanted data manipulation by external programs or classes. There are 4 access modifiers present in C#, let us discuss each with its description.
CODE
EG 1 . Creating Rectangle class with fields and variables
class Program {
    static void Main() {
    }
}
//Creating class called Rectangle with its fields and methods.
class Rectangle {
    //In order to access fields and methods outside class, we need to use Public keyword before it.
    public double length, width, height;
    public double Area() {
        return length * width;
    }
    public double Perimeter() {
        return 2 * (length+width);
    }
    public double Volume() {
        return Area() * height;
    }
}
EG 2 . Creating Class called car with fields and variables
class Program {
    static void Main() {
    }
}
class Car {
    public string color;
    public int weight, numberOfSeats;
    public void Drive() {
        Console.WriteLine("Start Driving");
    }
    public double CarryingLoadCapacity() {
        return (numberOfSeats*65)+30; //65 is the average weight of a person in kg, 30kg is for extra load for accessories,fuel etc.
    }
}
(Click Here, For more exercises)