Question

What is Object Oriented Programming? Explain concept of encapsulation with example in java.

15 Sep 2022
Answer :
Word Count : 600

Object-oriented programming (OOP) is a programming paradigm that is based on the concept of "objects", which can contain data and code that manipulate that data. In OOP, objects are instances of classes, which are templates or blueprints for creating objects. Classes define the properties (also called attributes or data members) and methods (also called member functions or operations) that objects of that class have.

The main idea behind OOP is to represent real-world entities (such as cars, people, or bank accounts) as objects in the computer program, and to use these objects to interact with each other to accomplish the desired task. OOP provides a way to organize and structure code in a way that is more intuitive and easier to understand than other programming paradigms, and it also promotes the idea of code reuse, which allows for more efficient and maintainable software development.

Some of the core concepts of OOP include:

  • Encapsulation: the practice of hiding the implementation details of an object from the rest of the program and exposing only a public interface.
  • Inheritance: the ability of a class to inherit properties and methods from a parent class, allowing for a hierarchy of classes.
  • Polymorphism: the ability of objects of different
_________ _________ _____ ________ ________ ________ ___ ____.
_______ _________ ________ ___ ___ __________ __________ _________ ______ _________ ______.
________ _______ ____ _________ _____ _________ ____.
_____ __________ ____ ________ ________ _______.
__________ ________ _______ _____ ____ _____ ____ _____ ________ ______.
_____ ____ _________ _____ ______ ___ _________.
_____ ______ _________ __________ _____ ____ _____ _______ _________ ___ _____.
________ ______ ____ __________ ____ _________ ______ __________ _______.
________ ______ ____ ____ ______ _________ _________ ____ ____ _____ ________ ____.
______ _____ ___ __________ _____ ________ _____ __________.
_______ _______ ________ ________ __________ ___ ____ ____ _____ _________.
__________ ___ _______ _______ __________ ________ ___ ______.
___ _______ __________ ________ ____ _______ ___.
________ _______ _________ _______ ___ ______ _____ _______ ________.
__________ _____ ____ __________ _________ ______ ______ _________ _____.
________ ____ __________ ___ _________ _________ _________.
__________ ___ _____ ________ _______.
____ _____ ___ ______ ______ _____ ___ _________ _________ ________ __________ _________.
___ ____ _______ ____ ________ ________ _________ _______.
______ _______ __________ _______ _____ ___ ___ __________ __________ __________.
___ ________ _________ _____ ___.
______ ____ ________ _______ __________ __________ ____ ______ _________.
_____ _______ _____ _______ ______.
_________ ____ ______ _______ _________ _________ ________ ______.
___ ______ ________ ______ _________ _____.
__________ _______ ________ __________ __________ _____.
________ _________ ________ _____ ____ ___ ___ _______ _____ ____ _____.
_________ _______ _________ _________ ___ _________.
____ ________ ______ _________ ____ ___ _____ ____ ________ _____.
_________ ______ _______ _____ ____.
_________ ______ _______ ____ __________ _________ __________ ___ ______ ________.
___ ________ ______ _________ ____ __________ ________ ____.
____ ________ __________ ______ ________ _________ ________ __________ ____.
__________ ______ ____ __________ ____ __________ ___ ______ __________.
____ ______ ______ _________ ___ _______ _____ _____ _______ _______ ______.
___ ______ __________ _____ __________ _____ ___ _________ ______ ____ ____ _______.
__________ _______ ____ ______ ________ ____ __________ ________ _________ ______ __________.
____ ____ ____ _________ ____ ___ _______.
______ _______ _____ _____ _____ ____ ____ __________ _______.
__________ __________ ________ _________ _________ ________ ________ ___ __________.
_____ ___ _________ ____ __________ _________ _______ ________ ______.
________ ______ _____ __________ _______.
_____ ______ ___ ________ _____ ____ ___.
___ _______ ______ ______ ___ __________ _____ ___ _______ ______ ____.
________ _______ __________ ____ _____ ____.
_______ ______ _________ ________ __________ ________ _________ ________ ________ ___ ______ _________.
_____ ______ ______ _____ _____.
______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 24 2022 2023 - What is Object Oriented Programming? Explain concept of encapsulation | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→