Technical Interview
Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer
Please enable JavaScript to view this page content properly.
Question:
What is the difference between an Interface and an Abstract class?
Answer:
An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.
Please enable JavaScript to view this page content properly.
Please enable JavaScript to view this page content properly.
Technical-Interview.com
© 2006 - 2011 Technical-Interview.com . All rights reserved