OBJECT-ORIENTED PROGRAMMING PROBLEMS
Problems you are presented with relating to object-oriented programming are likely to focus on the concepts of object orientation, particularly on issues relevant to the languages the company is using in its coding.
Interfaces and Abstract Classes
The specific answer to this depends on the language, but some general definitions are:
- An interface declares a set of related methods, outside of any class.
- An abstract class is an incomplete class definition that declares but does not define all its methods.
Conceptually, then, an interface defines an application programming interface (API) that is independent of any class hierarchy. Interfaces are particularly important in languages that support only single inheritance, in which classes can inherit only from one base class. A class that defines—either directly or via inheritance—...