SlideShare a Scribd company logo
1 of 9
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

Similar to Features of Object Oriented Programming.pptx

Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP conceptsAhmed Farag
 
PHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxPHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxAtikur Rahman
 
What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxhreempandya
 
1669609053088_oops_final.pptx
1669609053088_oops_final.pptx1669609053088_oops_final.pptx
1669609053088_oops_final.pptxPandeeswariKannan
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented ProgrammingAida Ramlan II
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming languageMd.Al-imran Roton
 
Java OOP Concept
Java OOP ConceptJava OOP Concept
Java OOP ConceptNikitaGour5
 
Questpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPSQuestpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPSgdrealspace
 
Lesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLuiFlor
 
Java object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - BrainsmartlabsJava object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - Brainsmartlabsbrainsmartlabsedu
 
Single responsibility pattern
Single responsibility patternSingle responsibility pattern
Single responsibility patternArif Huda
 
babsatu-140703233001-phpapp666666601.pdf
babsatu-140703233001-phpapp666666601.pdfbabsatu-140703233001-phpapp666666601.pdf
babsatu-140703233001-phpapp666666601.pdfkashafishfaq21
 

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

Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
PHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxPHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptx
 
What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptx
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
 
1669609053088_oops_final.pptx
1669609053088_oops_final.pptx1669609053088_oops_final.pptx
1669609053088_oops_final.pptx
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 
Java OOP Concept
Java OOP ConceptJava OOP Concept
Java OOP Concept
 
Questpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPSQuestpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPS
 
Lesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptx
 
Java object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - BrainsmartlabsJava object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - Brainsmartlabs
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Benefits of encapsulation
Benefits of encapsulationBenefits of encapsulation
Benefits of encapsulation
 
Single responsibility pattern
Single responsibility patternSingle responsibility pattern
Single responsibility pattern
 
Java Jive 002.pptx
Java Jive 002.pptxJava Jive 002.pptx
Java Jive 002.pptx
 
Bab satu
Bab satuBab satu
Bab satu
 
babsatu-140703233001-phpapp666666601.pdf
babsatu-140703233001-phpapp666666601.pdfbabsatu-140703233001-phpapp666666601.pdf
babsatu-140703233001-phpapp666666601.pdf
 
automatic dol starter
automatic dol starterautomatic dol starter
automatic dol starter
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Recently uploaded (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

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.