Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6474779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:37:41+00:00 2026-05-25T06:37:41+00:00

I was going through an article about Object Oriented Programming and it stated that

  • 0

I was going through an article about Object Oriented Programming and it stated that encapsulation means putting related items together, but I don’t understand how the article’s representative example: UserProfile.js. Though this example is in JavaScript, I’m looking to understand these concepts in Java.

Can anyone explain me these two questions with a pseudo code:

  1. What is encapsulation?
  2. Why do we need encapsulation with pseudo code?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:37:42+00:00Added an answer on May 25, 2026 at 6:37 am

    Michael has it correct.

    In Object Oriented programming Encapsulation is the first
    pace. Encapsulation is the procedure of covering up of data and
    functions into a single unit (called class). An encapsulated object is
    often called an abstract data type.

    ref: http://www.c-sharpcorner.com/UploadFile/ggaganesh/EncapsulationInCS11082005064310AM/EncapsulationInCS.aspx

    Encapsulation is the hiding of the non-essential features.

    So why do we need it.

    Programing is about translating a solution to a problem into logical code to solve that problem. Because of this, there maybe many complicated methods and functions that we don’t want Mr.Joe Blow developer to use. We will encapsulate (or BlackBox) those methods so they cannot be used (they are still used internally). This reduces complexity by only representing important functions and hiding others.

    As for needing it in pseudo code, i’m not sure. Michael did a good job with explaining that.

    I haven’t had enough coffee to give a good example,Plus my Rubik’s cube broke :(, i’ll write one up for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was going through this article to understand more about Java Serialization process. When
I've been going through this excellent article http://msdn.microsoft.com/en-us/library/ms972976.aspx that says ViewState is not responsible
Going through Javascript documentation, I found the following two functions on a Javascript object
While going through many resources on multithreaded programming, reference to volatile specifier usually comes
After going through a lot of articles on IDisposable , I got confused about
I'm thinking about starting a new project using EF 4 and going through some
After going through few articles about performance, Not able to get this statement exactly.
I am going through the article on JSF LifeCycles . I have the following
I was going through an article by Robert C. Martin and at one place
I am going through condition variable article at following location http://software.intel.com/en-us/blogs/2010/10/01/condition-variable-support-in-intel-threading-building-blocks/ Here we have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.