hat
Devlopman lojisyèl - Ki sa ki se yon Hook - Point 1Virtual teknik yo te pote nan yon wout konfonn soti nan estatik estrateji, men depi teknik vityèl ka chanje, du a pa konnen adrès la nan yon kapasite espesifik vityèl lè ou rele li nan kòd ou. Lè sa a, du a, konsa, rasanble yon tab metòd Virtual (VMT), ki bay yon fason pou rechèch sou kapasite adrès nan ègzekutabl. Chak estrateji sèl vityèl yo aktive nan ègzekutabl atravè VMT la. VMT a nan yon kesyon gen tout estrateji yo vityèl pou précurseur li yo, ak Anplis de sa moun li pwoklame. Se poutèt sa, teknik vityèl itilize plis memwa pase estrateji eleman, nan malgre lefèt ke yo kouri vitès.
eng
Software Development – What is a Hook – Point 1Virtual techniques are brought in an indistinguishable route from static strategies, but since virtual techniques can be changed, the compiler does not know the address of a specific virtual capacity when you call it in your code. The compiler, thus, assembles a Virtual Method Table (VMT), which gives a way to inquiry to capacity addresses in runtime. Every single virtual strategy are activated at runtime through the VMT. The VMT of a question contains all the virtual strategies for its precursors, and additionally those it proclaims. Therefore, virtual techniques utilize more memory than element strategies, in spite of the fact that they run speedier.