1 / 15
文档名称:

C++ 常见英文面试笔精彩试题.doc

格式:doc   大小:198KB   页数:15页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

C++ 常见英文面试笔精彩试题.doc

上传人:511709291 2019/11/25 文件大小:198 KB

下载得到文件列表

C++ 常见英文面试笔精彩试题.doc

相关文档

文档介绍

文档介绍:C/C++ProgramminginterviewquestionsandanswersBySatishShetty,July14th,2004Whatisencapsulation??Containingandhidinginformationaboutanobject,(使隔离)plexityofanobject',revenue(收益)fromabusinessobjectneednotknowthedata'???Polymorphismallowsaclienttotreatdifferentobjectsinthesamewayeveniftheywerecreatedfromdifferentclassesandexhibit(展现)(实现)inheritancetoachievepolymorphisminlanguagessuchasC++'spointercaninvoke(调用)++?????Constructorwhichinitializestheit'sobjectmembervariables(byshallowcopying)':BooObj1(10);//callingBooconstructorBooObj2(Obj1);//callingboocopyconstructorBooObj2=Obj1;//callingboocopyconstructorWhenarecopyconstructorscalled?Copyconstructorsarecalledinfollowingcases:a)whenafunctionreturnsanobjectofthatclassbyvalueb)whentheobjectofthatclassispassedbyvalueasanargumenttoafunctionc)whenyouconstructanobjectbasedonanotherobjectofthesameclassd)pilergeneratesatemporaryobjectWhatisassignmentoperator?(shallowcopy)Whatarealltheimplicitmemberfunctionsoftheclass?pilerimpl