[#0x002A] a simple delegation example

  如有下列代码:

public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException
{
	doGet(req, resp);
}

则称doPost() delegates to doGet()。delegate可以简单理解为give power to。

 

你可能感兴趣的:(example)