Object Oriented Software Engineering   View all facts   Glossary   Help
subject > representation > abstraction > data abstraction > interface
Next data abstractionlink    Updata abstraction    Previous data abstractiondata type   

interface comparison table
Subject implement by consider have be is a kind of is a subtopic of have example group describe hide have purpose implement using confuse with has definition help provide draw as show create using see also
Java interfacea classan extreme example of a horizontal framework: There is no implementation, and all the specified methods represent slots that must be filledany concrete methods or instance variableslike a class except that it does not have any executable statements - it only contains abstract methods and class variablesinterface3.3 - Frameworks: Reusable Subsystems
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
the pieces of data that describe some entity, so that programmers can manipulate that data as a unita portion of the visible behaviour of a set of objectsthe details of datato specify a set of methods that a variety of different classes can implement polymorphicallythe implements keyword in JavageneralizationsIn Java, a software module containing a description of a set of operations that certain classes must implementa programmer to cope with the complexity of datamany of the same benefits as multiple inheritancea small circle (like a lollipop), labelled with the name of the interface or as a class rectangle, with the expression Ğinterfaceğ at the top, and (optionally) a list of supported operations in a UML diagrama can-be-seen-as relation between the implementing class and the interfacesuperclasses containing only abstract methods in some languagesinterface^3

Next data abstractionlink    Updata abstraction    Previous data abstractiondata type