Cov ntaub ntawv dav dav yog dab tsi?
Cov ntaub ntawv dav dav yog dab tsi?

Video: Cov ntaub ntawv dav dav yog dab tsi?

Video: Cov ntaub ntawv dav dav yog dab tsi?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

Txhua cov ntaub ntawv qauv yog ib lub thawv uas tuav ib qho tshwj xeeb cov ntaub ntawv hom. Cov ntaub ntawv dav hom yog qhov tseem ceeb hauv kev tsim cov tsev qiv ntawv uas ua haujlwm nrog "ib yam" cov ntaub ntawv hom. Ib tug dynamic binding ntawm cov ntaub ntawv hom thiab cov ntaub ntawv qauv tshwm sim thaum lub sij hawm khiav.

Tsis tas li ntawd, dab tsi yog hom ntaub ntawv dav dav?

Hom dav dav . Txhais: “A hom hom yog a muaj chav kawm lossis interface uas yog parameterized dhau hom ” Qhov tseem ceeb, hom generic cia koj sau ib tug general, muaj chav kawm (los yog txoj kev) uas ua haujlwm nrog sib txawv hom , tso cai rau rov siv dua code.

Qhov thib ob, yog dab tsi yog ib tug generic code? Ntau programming yog ib hom computer programming uas algorithms tau sau nyob rau hauv cov nqe lus ntawm cov hom yuav tsum-tau-qhib-tom qab ntawd ces instantiated thaum xav tau rau tej hom muab raws li tsis.

Dhau li ntawm no, dab tsi yog generic cov ntaub ntawv qauv thiab generic algorithm?

Ntau Programming enables tus programmer sau ib tug general algorithm uas yuav ua haujlwm nrog txhua tus cov ntaub ntawv hom. Nws tshem tawm qhov xav tau los tsim qhov sib txawv algorithms yog tias cov ntaub ntawv hom yog tus lej, hlua lossis tus cim.

Lub luag haujlwm tseem ceeb yog dab tsi?

A muaj nuj nqi yog a muaj nuj nqi uas tau tshaj tawm nrog hom tsis. Thaum hu, hom tiag tiag yog siv los ntawm hom tsis.

Pom zoo: