Goldman Sachs Interview Question for Software Engineer / Developers






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

using base class pointer/ reference u call derived class methods is called polymorphism.

- sachin323 November 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Polymorphism allows a client to treat different objects in the same way even if they were created from different classes and exhibit different behaviors.

You can use implementation inheritance to achieve polymorphism in languages such as C++ and Java.

Base class object's pointer can invoke methods in derived class objects.

You can also achieve polymorphism in C++ by function overloading and operator overloading.

- sachin323 November 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Talk aboul 2 different kinds of polymorphism (ability to have different behavior):
1. Static/Compile time polymorphism - this could be achieved using function overloading/operator overloading
2. Dynamic/Run time polymorphism - this could be achieved using virtual functions

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

Polymophism is the ability to provide mutilple implementations of an action and select the correct implementation based on the surounding context.
For example , a class can have two versions of a method with different parameters ;
Or the same method can be defined both in base class and sub class ,the latter overriding the former for the instance of subclass.

- tzbluebaby March 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

IT IS HUNDRED PERCENT CORRECT

- KRUPALINI BAL May 02, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

rite

- Anonymous August 01, 2011 | 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