PPT Slide
Public class StudentEmployee implements Student, Employee
{ protected StudentImpl studentImpl;
protected EmployeeImpl employeeImpl;
{studentImpl = new StudentImpl();
employeeImpl = new EmployeeImpl();
{return studentImpl.getGPA();}
/* StudentEmployee has delegated this method to be implemented by class StudentImpl. */
{return employeeImpl.getSalary()}
/* StudentEmployee has delegated this method to be implemented by class EmployeeImpl. */