文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Item 41: Understand implicit interfaces and compile-time polymorphism(Effective

Item 41: Understand implicit interfaces and compile-time polymorphism(Effective

时间:2011-04-05  来源:Ray Z

  • Both classes and templates support interfaces and polymorphism.

  • For classes, interfaces are explicit and centered on function signatures. Polymorphism occurs at runtime through virtual functions.

  • For template parameters, interfaces are implicit and based on valid expressions. Polymorphism occurs during compilation through template instantiation and function overloading resolution.

相关阅读 更多 +
排行榜 更多 +
射击吧

射击吧

飞行射击 下载
爆射护卫队

爆射护卫队

飞行射击 下载
行尸出笼

行尸出笼

飞行射击 下载