a simple delegation example

Yao Yao on October 31, 2009
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {  
    doGet(req, resp);  
}  

简直是最简单也最直白的例子了。我们称 doPost() delegates its function to doGet() 或者说 doPost() delegates doGet() to function。



blog comments powered by Disqus