abstract 的 interface ,如何理解?

03-08-11 kerry_zeng
package javax.servlet;

// Imports

import java.io.IOException;

public abstract interface Servlet {

// Methods

void init(ServletConfig servletConfig) throws ServletException;

ServletConfig getServletConfig();

void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException;

String getServletInfo();

void destroy();

}

yehs220
2003-08-11 12:29
abstract可要可不要吧,就像interface中method前面的public一样。

猜你喜欢