java - 关于实际项目中,对象关联通常是单向还是双向,各有什么优缺点 ?
PHP中文网
PHP中文网 2017-04-18 10:25:55
0
1
826

关于实际项目中,对象关联通常是单向还是双向,各有什么优缺点 ?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (1)
大家讲道理

Personally, I think this depends on the usage scenario

One way

It is irreversible access, hierarchical relationship, and superior data storage

Both directions

Can access each other, easy to obtain data

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!