基于安卓的外文翻译安卓-外文翻译.doc基于安卓的外文翻译安
卓-外文翻译
导读:就爱阅读网友为您分享以下“安卓•外文翻译,啲资 讯,希望对您有所帮助,!
Coverage means that subclasses redefine the virtual function of the parent class method.
Overloading, refers to allow multiple functions with the same name, and the parameters of these functions are different (perhaps the number of parameters are different, perhaps different parameter types, maybe both are different).
In fact, the concept of "heavy load does not belong to the object oriented programming&qnot;,
Heavy load: the compiler implementation is according to the parameter table function different, the name of the functions
with the same name as modification
Then these functions with the same name as the different function (at least for the compiler).
For example, there are two functions with the same name: function func (p:integer): integer; and function func (p:string): integer;.
Then the compiler had modified the function name may be this: int_func9 str_func.
For the two function calls, the compiler have been identified, is static (remember: static).
That is to say, their address is bound at compile time (early binding),
Therefore, overloading and polymorphism! The real and polymorphism is related to the "cover";・
When the class to define virtual functions the parent class, the parent class pointer according to assign it to the different sub class pointer, dynamic (re
基于安卓的外文翻译安卓-外文翻译 来自淘豆网m.daumloan.com转载请标明出处.