What is Class in Object-oriented programming?
A class is a collection of objects similar types. For examples, Mango, Apple and orange members of class fruit. Classes are user-defined that types and behave like the built-in types of a programming language.
For Example:
If the fruit has been defining as a class, then the statement
Fruit Mango;
Will create an object mango belonging to the class fruit.