欢迎来到天天文库
浏览记录
ID:48254842
大小:67.29 KB
页数:2页
时间:2019-11-21
《Adobe公司笔试题.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Adobe公司笔试题 1、(10%)whatistheruleofclassD*,UserClass,andclientclassofD*andUserClasstoaccessthememberofclassB? classB {/*……..*/}; classDpri:privateB{/**…….*/} classDPubl:publicB{/**….*/} classUserClass {Bb;/**..*/} 2writetheoutput include incl
2、ude usingnamespacestd; voidprintln(conststd::stringmsg) { std:cout< } classBase{ public: Base(){println(“Base::Base()”);Virt();} Voidf(){println(“Base::f()”);Virt();} Virtualvoidvirt(){println(“Base()::virt()”);} }; classDerived:publi
3、cBase { Derived(){println(“Derived::Derived()”);Virt();} Virtualvoidvirt(){println(“Derived()::virt()”);} }; intmain(intargc,char*argv[]) { Derivedd; Base*pB=d; PB>f(); } 2.1(5%)whatistheoutputofthecode“pB>f();”above? 2.2(5%)whatisthe
4、outputofthecode“Derviedd;”above?
此文档下载收益归作者所有