SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
FEATURES OF OBJECT
ORIENTED PROGRAMMING
NAME – SWAGATO BISWAS
MAKAUT REGISTRATION NUMBER -222892410170
MAKAUT ROLL NO. - 289950522002
COURSE – BSC. IN GAMING AND MOBILE APPLICATION DEVELOPMENT
PAPER NAME – OBJECT ORIENTED PROGRAMMING
PAPER CODE – GAM 201
INTRODUCTION
Object-Oriented Programming (OOP) is a programming concept that emphasizes the use of objects,
classes, inheritance, and polymorphism. OOP is based on the idea of encapsulating data and behavior
within a single unit, known as an object. This provides a way to organize and structure code in a more
intuitive and modular way.
Java is an object-oriented programming language that supports the following six key OOP concepts
• CLASS
• OBJECTS
• INHERITENCE
• ENCAPSULATION
• ABSTRACTION
• POLYMORPHISM
CLASS
In Java, a class is a blueprint or a template that describes the characteristics and behaviors of an object. A
class can be used to create one or more objects that share the same properties and methods.
The properties of a class are defined by its variables, which represent the state of the object. The methods
of a class define the behaviors or actions that can be performed on the object.
OBJECTS
In Java, an object is an instance of a class that encapsulates data and behavior. Objects are created from
classes using the "new" keyword and can be used to perform operations, manipulate data, and interact
with other objects in the program.
An object in Java has two main components: state and behavior. The state of an object is represented by its
variables or fields, which store the object's data. The behavior of an object is represented by its methods,
which define the actions that the object can perform.
INHERITENCE
Inheritance is one of the fundamental concepts of object-oriented programming (OOP) in Java. It allows a
subclass or child class to inherit the properties and behaviors of its superclass or parent class. Inheritance
in Java provides the following benefits:
• Code Reusability: Inheritance allows a subclass to reuse the code of its parent class, which reduces the
amount of code duplication and helps in maintaining the code.
• Code Maintainability: Inheritance helps in organizing the code in a hierarchical structure, making it
easier to maintain and update the code.
• Polymorphism: Inheritance is the foundation of polymorphism, which allows objects of different classes
to be treated as objects of a common superclas
ENCAPSULATION
Encapsulation is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the process of binding
data and code together and restricting access to data from unauthorized users. Encapsulation in Java provides the following
benefits:
• Data hiding: Encapsulation allows the programmer to hide the implementation details of the class from the outside world.
This helps to prevent unauthorized access to the data and provides security.
• Improved code maintainability: By hiding the implementation details of the class, encapsulation helps to reduce code
complexity, making it easier to maintain and update the code.
• Modularity: Encapsulation allows the programmer to develop modules that can be reused in different contexts.
In Java, encapsulation is achieved by declaring the class variables as private and providing public getter and setter methodsto
access and modify the data. The private access modifier restricts the access to the class variable from outside the class, while
the public getter and setter methods provide a controlled way of accessing and modifying the data.
ABSTRACTION
Abstraction is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the process of
hiding the implementation details of a class and exposing only the necessary information to the outside world.
Abstraction in Java provides the following benefits:
• Reduced complexity: Abstraction helps to reduce the complexity of the code by hiding the implementation
details and exposing only the essential information.
• Increased maintainability: Abstraction makes the code more modular and reusable, making it easier to
maintain and update the code.
• Polymorphism: Abstraction is the foundation of polymorphism, which allows objects of different classes to be
treated as objects of a common superclass.
In Java, abstraction is achieved by using abstract classes and interfaces. An abstract class is a class that cannot be
instantiated and can only be used as a superclass for other classes. An interface is a collection of abstract
methods and constants that can be implemented by a class
POLYMORPHISM
Polymorphism is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the ability
of objects of different classes to be treated as objects of a common superclass. Polymorphism in Java provides
the following benefits:
• Code reusability: Polymorphism allows objects of different classes to be treated as objects of a common
superclass, which makes it easier to reuse the code.
• Flexibility: Polymorphism makes the code more flexible by allowing objects of different classes to be treated
uniformly.
• Extensibility: Polymorphism makes it easier to extend the functionality of a class by adding new subclasses.
THANK YOU!

More Related Content

PPTX
java interface and packages
PDF
Arrays in Java
PPTX
Set operations
PPTX
Sentiment analysis
PPTX
Diabetes Mellitus
PPTX
Hypertension
PPTX
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
java interface and packages
Arrays in Java
Set operations
Sentiment analysis
Diabetes Mellitus
Hypertension
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx

What's hot (20)

PPT
Chapter 2 : Application Layer
PPT
Peer to Peer services and File systems
PPTX
1 unit (oops)
PPTX
Object Oriented Programming Concepts for beginners
PPTX
Motivation in software project development
PPT
System design
PPT
Deadlock in operating systems
PPTX
object oriented Programming ppt
PPTX
Market oriented Cloud Computing
PPTX
PPT
Basic concepts of object oriented programming
PPTX
Encapsulation
PDF
Advanced Database Lecture Notes
PPTX
Software Quality Attributes
PPT
Object and class relationships
PPT
Spm unit 5
PPTX
Data Representation in Data Communication (1).pptx
PPTX
CPU Scheduling in OS Presentation
PPTX
Context model
PPT
Unit 4
Chapter 2 : Application Layer
Peer to Peer services and File systems
1 unit (oops)
Object Oriented Programming Concepts for beginners
Motivation in software project development
System design
Deadlock in operating systems
object oriented Programming ppt
Market oriented Cloud Computing
Basic concepts of object oriented programming
Encapsulation
Advanced Database Lecture Notes
Software Quality Attributes
Object and class relationships
Spm unit 5
Data Representation in Data Communication (1).pptx
CPU Scheduling in OS Presentation
Context model
Unit 4
Ad

Similar to Features of Object Oriented Programming.pptx (20)

PDF
Exploring the Pillars of Object java.pdf
PPTX
Java ppt.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Untitled presentation about object oriented.pptx
PDF
Object-Oriented Programming in Java.pdf
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
PDF
Procedural-vs-Object-Oriented-Programming (1).pdf
PPTX
Introduction to Java Programming beginners.pptx
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
PPTX
Object Oriented Programming.pptx shiva
PPTX
Overview of Object-Oriented Concepts in Java.pptx
PDF
Diving into OOPs_ Key Concepts and Principles (1).pdf
PPTX
OOP Concepts.paper presentation. In computer science
PPTX
Principles of OOPs.pptx
PDF
Java Interview Questions
PDF
Cs8392 oops 5 units notes
DOCX
Object Oriented Programming All Unit Notes
PPTX
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
PPTX
Object Oriented Programming WEOBRDSLKBNSDF
PPTX
U1 JAVA.pptx
Exploring the Pillars of Object java.pdf
Java ppt.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkk
Untitled presentation about object oriented.pptx
Object-Oriented Programming in Java.pdf
Share Unit 1- Basic concept of object-oriented-programming.ppt
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
Procedural-vs-Object-Oriented-Programming (1).pdf
Introduction to Java Programming beginners.pptx
Unit 1- Basic concept of object-oriented-programming.ppt
Object Oriented Programming.pptx shiva
Overview of Object-Oriented Concepts in Java.pptx
Diving into OOPs_ Key Concepts and Principles (1).pdf
OOP Concepts.paper presentation. In computer science
Principles of OOPs.pptx
Java Interview Questions
Cs8392 oops 5 units notes
Object Oriented Programming All Unit Notes
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
Object Oriented Programming WEOBRDSLKBNSDF
U1 JAVA.pptx
Ad

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
Teaching material agriculture food technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
August Patch Tuesday
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PPTX
Machine Learning_overview_presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Teaching material agriculture food technology
Machine learning based COVID-19 study performance prediction
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
August Patch Tuesday
Assigned Numbers - 2025 - Bluetooth® Document
cloud_computing_Infrastucture_as_cloud_p
Univ-Connecticut-ChatGPT-Presentaion.pdf
TLE Review Electricity (Electricity).pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
Machine Learning_overview_presentation.pptx
Encapsulation theory and applications.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Features of Object Oriented Programming.pptx

  • 1. FEATURES OF OBJECT ORIENTED PROGRAMMING NAME – SWAGATO BISWAS MAKAUT REGISTRATION NUMBER -222892410170 MAKAUT ROLL NO. - 289950522002 COURSE – BSC. IN GAMING AND MOBILE APPLICATION DEVELOPMENT PAPER NAME – OBJECT ORIENTED PROGRAMMING PAPER CODE – GAM 201
  • 2. INTRODUCTION Object-Oriented Programming (OOP) is a programming concept that emphasizes the use of objects, classes, inheritance, and polymorphism. OOP is based on the idea of encapsulating data and behavior within a single unit, known as an object. This provides a way to organize and structure code in a more intuitive and modular way. Java is an object-oriented programming language that supports the following six key OOP concepts • CLASS • OBJECTS • INHERITENCE • ENCAPSULATION • ABSTRACTION • POLYMORPHISM
  • 3. CLASS In Java, a class is a blueprint or a template that describes the characteristics and behaviors of an object. A class can be used to create one or more objects that share the same properties and methods. The properties of a class are defined by its variables, which represent the state of the object. The methods of a class define the behaviors or actions that can be performed on the object.
  • 4. OBJECTS In Java, an object is an instance of a class that encapsulates data and behavior. Objects are created from classes using the "new" keyword and can be used to perform operations, manipulate data, and interact with other objects in the program. An object in Java has two main components: state and behavior. The state of an object is represented by its variables or fields, which store the object's data. The behavior of an object is represented by its methods, which define the actions that the object can perform.
  • 5. INHERITENCE Inheritance is one of the fundamental concepts of object-oriented programming (OOP) in Java. It allows a subclass or child class to inherit the properties and behaviors of its superclass or parent class. Inheritance in Java provides the following benefits: • Code Reusability: Inheritance allows a subclass to reuse the code of its parent class, which reduces the amount of code duplication and helps in maintaining the code. • Code Maintainability: Inheritance helps in organizing the code in a hierarchical structure, making it easier to maintain and update the code. • Polymorphism: Inheritance is the foundation of polymorphism, which allows objects of different classes to be treated as objects of a common superclas
  • 6. ENCAPSULATION Encapsulation is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the process of binding data and code together and restricting access to data from unauthorized users. Encapsulation in Java provides the following benefits: • Data hiding: Encapsulation allows the programmer to hide the implementation details of the class from the outside world. This helps to prevent unauthorized access to the data and provides security. • Improved code maintainability: By hiding the implementation details of the class, encapsulation helps to reduce code complexity, making it easier to maintain and update the code. • Modularity: Encapsulation allows the programmer to develop modules that can be reused in different contexts. In Java, encapsulation is achieved by declaring the class variables as private and providing public getter and setter methodsto access and modify the data. The private access modifier restricts the access to the class variable from outside the class, while the public getter and setter methods provide a controlled way of accessing and modifying the data.
  • 7. ABSTRACTION Abstraction is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the process of hiding the implementation details of a class and exposing only the necessary information to the outside world. Abstraction in Java provides the following benefits: • Reduced complexity: Abstraction helps to reduce the complexity of the code by hiding the implementation details and exposing only the essential information. • Increased maintainability: Abstraction makes the code more modular and reusable, making it easier to maintain and update the code. • Polymorphism: Abstraction is the foundation of polymorphism, which allows objects of different classes to be treated as objects of a common superclass. In Java, abstraction is achieved by using abstract classes and interfaces. An abstract class is a class that cannot be instantiated and can only be used as a superclass for other classes. An interface is a collection of abstract methods and constants that can be implemented by a class
  • 8. POLYMORPHISM Polymorphism is one of the fundamental concepts of object-oriented programming (OOP) in Java. It is the ability of objects of different classes to be treated as objects of a common superclass. Polymorphism in Java provides the following benefits: • Code reusability: Polymorphism allows objects of different classes to be treated as objects of a common superclass, which makes it easier to reuse the code. • Flexibility: Polymorphism makes the code more flexible by allowing objects of different classes to be treated uniformly. • Extensibility: Polymorphism makes it easier to extend the functionality of a class by adding new subclasses.