Yahoo Interview Question for Software Engineer / Developers


Country: India
Interview Type: Phone Interview




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

When you have a consistently changing design of your base class ,you should go for an abstract class as the classes which extend these base classes will automatically inherit functionality from the base classes.But instead if you use a interface,not only the interfaces would have to be changed but also the classes implementing the interface would have to be changed.So inshort when you have a consistently changing design you should opt for a Abstract class and vice versa.

- gandheshantanus March 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1)Wht is abstraction?

Abstraction in Java allows the user to hide non-essential details relevant to user.

2)Diff between abstract class nd interface nd when u use one?

Abstract class can have concrete methods.We can extend only one abstract class in our class.

Interface can't have concrete methods. We can implement n number of interface in our class.

If we need same change everywhere, we should take abstract class.If all implemented class need different changes we should go for interface.

- Bindu December 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Check out "Codeofdoom" for a very excellent section on this topic.

- Anonymous March 13, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what is oop

- Anonymous February 06, 2015 | 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