The parent bean sample and the child bean together show subclassing an EJB. Each samples shows a stateless session bean. The child bean overrides some methods from the parent bean, and also invokes methods directly on the parent bean. Thus, the child bean sample shows subclassing and one bean invoking another bean.