阅读背景:

Ruby模块是否等同于Java接口?

来源:互联网 

As I understand it, an interface is Java is intended to enforce a design by laying out methods for classes implementing the interface to fill in. Is this the idea with a Ruby module also? I see that just like with Interfaces in Java, you can't instantiate a module in Ruby.As I understand it, an interface is Java is int




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

分享到: