开发者

Simulating interfaces when unsupported by a language

开发者 https://www.devze.com 2023-02-11 20:05 出处:网络
Is there a way to form pseudo interfaces when these aren\'t di开发者_开发知识库rectly supported by an OOP language?Does it have virtual functions?An interface is nothing more than a base class with no

Is there a way to form pseudo interfaces when these aren't di开发者_开发知识库rectly supported by an OOP language?


Does it have virtual functions? An interface is nothing more than a base class with nothing but virtual functions, either without any body, or with a stub that throws an error if the base class version is used.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号