posted 22 years ago
An example of composition is the attribute reference, ie.
composition:
public class A
{
AnotherClass B = new AnotherClass();
}
inheritance:
public class A extends B
{
}
or
public class A implements B
{
}
------------------
David Roberts - SCJP2,MCP
David Roberts - SCJP2,MCP