Interface Design
<< Service Oriented Classes
Page 5: Component Oriented Classes
Component Oriented classes have the characteristics of Object Oriented classes, but have a THIN interface so they can be used in different contexts more easily.
Those different contexts include different code bases (e.g. COM, CORBA) and containers (e.g. web browsers).
Here is an example Component Oriented file handler implementation, called FileComponent:
public class FileComponent
{
public setFileName( String fileName ) {...}
public File getFileName() {...}
public void setContent( String content ) {}
public String getContent() {...}
}
>> Next Page: Correct Use
More about Component Oriented classes.
<< Back to Design
<< Back to Software Reality
|