Sage Software Interview Question for Software Engineer / Developers






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

Abstract class can have method definitions, interface can not have method definitions

- Anonymous February 21, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

In general, interface has method declarations alone and no definitions. It can have static final members as well. (constant). Any class implementing this interface has to implement all the methods.
Abstract class on the other hand may have some methods which are implemented and some methods that are abtract. As opposed to interface, abstract class may have members which are not static and final. Any subclass of abstract class should implement the abtract methods of its super or it be declared abstract as well.

If abstract class has only abstract methods in it, it might as well be declared as an interface.
For the given example, there is no difference between functionalities for the two types. The behaviour is the same.

- ipod February 27, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

an abstract class can implement the methods whereas the interface cannot implement the methods
ABS class can have constructors and destructors where as interface cannot

importantly....an abstract class cannot have multiple inheritances where as an interface can

- veeraiah c nuvvula October 22, 2007 | 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