Bloomberg LP Interview Question for Software Engineer / Developers

Team: Supply Chain
Country: United States
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
of 0 vote

Need for Encapsulation
Any program of any programming language contains only two parts.
Out of these two highest priority would be always given to data part.
Functions /logics would e giving output based on the data.
There is no proper security for the data part in the structured programming language programs like c - program.
There was no proper separation between the data and functions of different domains because of which complexity of the programming increases and data insecurity arises
The concept of proper binding is missing in structured programming languages
What is Encapsulation?

The concept of binding the data along with its related and corresponding functions is known as Encapsulation.

The concept of restricting the availability of the data only to its related areas and related functions it is known as binding.
Because of binding we can restrict the availability of dta to the unrelated functions
So that unrelated functions cannot access the data
Class is the base for encapsulation

- instanceofjava December 12, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

Encapsulation is one of OOP principles where objects data should not be accessible directly instead it should be accessed through functions

Inheritance is another OOP concept where one object able to use the same implementation from another class. In other words it able inherits the implementation of another class.

The inheritance can be used when an abstraction of the code points some shared functions/features among more than one objects. It promotes code reuse and polymorphism.

- rp12 February 27, 2015 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More