Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods.
Objects are basic run-time entities in an object oriented system, objects are instances of a class these are defined user defined data types.
Example: