文档介绍: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