a style of computer programming that entails building independent pieces of code that interact with each other. java and C++ are object-oriented programming languages.
a programming methodology in which the programmer can define not only data types, but also methods that are automatically associated with them.Ageneral type of an object is called a class. Once a class has been defined, specific instances of that class can be created.
The act of calling one of an object's methods is sometimes described as "sending a message" to the object (e.g., c.draw "sends a message" to c saying "drawyourself").All object-oriented programming systems allow one class to inherit from another, so the properties of one class can automatically be used by another class. For example, there is a standard Java class called Applet which contains the code needed to display an applet on the web. When you write your own applet, it will inherit from (extend) this class, so you don't need to recreate that code yourself.