Amazon Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Phone Interview




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

in overloading functions with same name are used but they have different parameters type or no. for better understanding u may follow this link geeksforgeeks.org/function-overloading-in-c/
while overriding is concept in inheritence ,function with same name and parameters are present both in base and child class .

- zeroByzero January 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Overloading:
One must change either parameter type or number of parameters for a method belongs to the same class.
Overriding:
overriding a method means that a method inherited from a base class is what’s being changed.

- Ranga January 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Overloading is resolved at Compile time ....overriding is resolved at Run time ......

- Anuj Agrawal January 16, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 2 vote

google it..:P

- xyz January 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

When two or more different declarations are specified for a "single name" in the "same scope" , that name is said to be overloaded.Overloading always happens in same scope and NOT across scope as in same names in base class/derived class.When overloaded base class method is redefined in derived class, it hides all the overloaded members of base class in scope of derived class

Overriding applies to only to inheritance when a virtual method in base class is redefined in derived class. An overriding virtual function has to match the signature and the return type of the function it overrides(except that return type of a public base can be changed to the type of a derived class)

- Sree January 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Adding one more point "return type of functions must be same".

- Abhishek Narolia July 14, 2013 | 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