1. Object-oriented programming (OOP) is a computer programming model that
organizes software design around data, or objects, rather than functions and logic. An
object can be defined as a data field that has unique attributes and behavior.
OOP
2. EXAMPLES OF OBJECT ORIENTED
PROGRAMMING
• Java
• C++
• Python
• Ruby, etc,.
3.
4. OBJECTS
• Object − Objects have states and behaviors. Example: A dog has
states - color, name, breed as well as behaviors – wagging the tail,
barking, eating. An object is an instance of a class. Class − A class
can be defined as a template/blueprint that describes the
behavior/state that the object of its type support.
5. CLASS
• Classes (OOP) In object-oriented programming, a class is a
blueprint for creating objects (a particular data structure), providing
initial values for state (member variables or attributes), and
implementations of behavior (member functions or methods). The
user-defined objects are created using the class keyword.
6. INHERITANCE
• In object-oriented programming, inheritance is the mechanism of
basing an object or class upon another object (prototype-
based inheritance) or class (class-based inheritance), retaining
similar implementation. ... An inherited class is called a subclass of its
parent class or super class.
7. POLYMORPHISM
• In object-oriented programming, polymorphism refers to a
programming language's ability to process objects differently
depending on their data type or class. More specifically, it is the ability
to redefine methods for derived classes.
8. ABSTRACTION
• Abstraction is selecting data from a larger pool to show only the
relevant details of the object to the user. Abstraction “shows” only the
essential attributes and “hides” unnecessary information. It helps to
reduce programming complexity and effort.
9. ENCAPSULATION
• Encapsulation is one of the fundamental concepts in object-
oriented programming (OOP). It describes the idea of bundling data
and methods that work on that data within one unit, e.g., a class in
Java. This concept is also often used to hide the internal
representation, or state, of an object from the outside.