Main function of object oriented language is
Main function of object oriented language is class.
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. A program has been viewed as a logical procedure that takes input data, processes it, and produces output data.
Object is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A class is like a blueprint for an object.