Goldman Sachs Interview Question for Software Engineer / Developers






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

I would explain it using a school analogy, thats what a 10yr old kid can relate closely.
If you look at the world as a school, then all humans are in a single 'class' and each of us are an 'instance' of this class. All of us have characteristics or 'attributes' such as weight, shape, bodytype etc.. and humans have behaviors or 'methods' such as breathing, walking, thinking etc...
Now, when you look at a person playing baseball, you don't know the details how he is playing, like he/she looks at the ball, thinks something in the mind about how to hit the ball and hits it. This is basically 'encapsulating' details from others.
And as humans we are all animals and there are other animals such as tigers, elephants, monkeys, fish etc... so all tigers are in one class, elephants are in a class and so on. So all the different class of animals are 'inherited' from animal class. All animals have some similar behaviors such as talking, walking, breathing etc... each of the animal types have different forms of these behaviors. For example if a dog want to talk it barks, if a bird wants to talk it chirps and as humans we talk using sounds, so all the animals have different forms for the similar behavior which is 'polymorphism'.
Hope this helps!

- chennavarri October 12, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Awesome...Perfect way to explain it!

- Anonymous October 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I guess a difficult question would be:
"How would you explain OOPs to the Pope?"

- chennavarri October 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Find me a 10yr old who wants to know about OOPS first..

- Anonymous August 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Make it a part of a video game :P

- Anonymous August 07, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I will only try if I am guaranteed that I will make money weather the 10 year old gets it or not.

- Zubair August 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

you can explain it by comparing Objects to Lego's blocks.

- Jig August 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@chennavari ...mcd laundi :P

- sahi ... November 24, 2010 | Flag Reply


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