Amazon Interview Question for Software Engineer / Developers


Country: United States




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

- information hiding
- expose interface
- achieved by creating classes
- The inclusion within a program object of all the resources need for the object to function

- peter February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 votes

-Its ability to take more than one form
-data hinding

- kalpana February 13, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Kalpana: Ability to take more than one form comes from polymorphism and not encapsulation.

- whyZ February 19, 2013 | Flag
Comment hidden because of low score. Click to expand.
3
of 9 vote

Tell Me HOW COME ?? I mean.. How can you become so damn Lucky ?? Nobody gets such question @ Amazon... you must be Luckiest ........... Gosh........

- hprem991 February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

encapsulation is one of the four fundamentals of OOP (object-oriented programming). Encapsulation is to hide the variables or something inside a class, preventing unauthorized parties to use. So the public methods like getter and setter access it and the other classes call these methods for accessing

- Husnain Ashraf February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Cut&paste from wikipedia.

- Anonymous February 13, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Basically, as what its name implies, encapsulation means
1) grouping related data and subroutines together.
2) hiding irrelevant information from users.
3) exposing nessary interfaces to users.

For example, class is one of constructs that 1) group related data and subroutines into objects. 2-3) hide implementations and expose interfaces by access control(visibility of its members and of its base-class members).

Besides, in the old day, module is the construct that provides encapsulation for non-OOP languages. Like in C, a compilation unit is the body of a module that 1) groups data and subroutines. It 2-3) hides implementation details in the body and exports interfaces via its header.

- waiging.lau February 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Encapsulation is one of the rull of OOPS, which wrap the functionality of structure or we can say structures.

- deb February 15, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Software Developer Engineering Intern question

- Neo February 16, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Two parties involved: Class designer and Client code. Users ( client ) of the class ( designed by class designer) is unaware of the complexity of the task undertaken by the class. Encapsulation defines clean dispersal of responsibilites, with each party unaware of how other party handles the given task, with all parties interdependent in accomplishing a common goal.

- whyZ February 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

cant belv .... amazon asks this type of ques ;)

- Deepak Singh February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

I would think Amazon will ask more design questions... This one is too simple, may be for a Intern?

- John March 01, 2013 | Flag


Add a Comment
Name:

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

Books

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

Videos

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