Class in OOP.class is like a blueprint/template in OOPs, and this template is used to create objects.The collection of properties & behavior of an object is also called as class

Class in OOP

class is like a blueprint/template in OOPs, and this template is used to create objects.The collection of properties & behavior of an object is also called as class.
A class contains  properties, fields, data members, attributes.


Example:
Car is an object , cars is a class
public class cars
{
  //
}


According to the sample given below we can say that the cars object, named object_car, has created out of the cars class.
cars object_car = new cars();