同样,要考虑重构您的会话虚包,使它们与单个“网关”实体相关联,该实体是代码的起始点。
Also, consider refactoring your session facades so that they are associated with a single "gateway" entity that is the natural starting point for the code.
当然,如果类层次结构发生变化,并且出现另外的目标方法,则JIT编译器可以更正最初生成的代码以便执行虚调用。
Of course, if the class hierarchy changes and a second target method becomes possible, then the JIT compiler can correct the originally generated code so that the virtual invocation is performed.
为纯虚函数所生成的代码如列表 1 中所示。
The code generated for the pure virtual function is shown in Listing 1.
应用推荐