阅读背景:

当您在Clojure中扩展Java类并定义与该类中的方法同名的方法时,会发生什么?

来源:互联网 

I've been reading through Programming Clojure, and I've been having some trouble understanding Stuarts primary Java Interop example. He extends DefaultHandler, and creates a startElement method, and then passes that handler to an XML parser. What I don't understand, is what exactly is happening. Does his implementation of startElement override the one defined in DefaultHandler? I'm confused. I have no experience with Java, and little with object orientation.I've been reading through Programming Clojure,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: