【急求这几道c++题的答案,英文更佳1.Whatdoesin-查字典问答网
分类选择

来自桂雄明的问题

  【急求这几道c++题的答案,英文更佳1.WhatdoesinheritancemeaninC++?SupposeyouhaveclassAandclassB,underwhichofthefollowingtwoconditionsclassBshouldinheritfromclass(1)AisapartofB.(2)BisakindofA.2.Whens】

  急求这几道c++题的答案,英文更佳

  1.WhatdoesinheritancemeaninC++?SupposeyouhaveclassAandclassB,underwhichofthefollowingtwoconditionsclassBshouldinheritfromclass

  (1)AisapartofB.

  (2)BisakindofA.

  2.Whenshouldthekeywordvirtualbeplacedbeforeamemberfunctionofaclass?Doallofthevirtualmemberfunctionshavetobeoverriddeninthederivedclass?Ifnot,why?

  3.DoesC++supportmultipleinheritance?Somepeoplethinkthatmultipleinheritancecancauseavarietyofambiguityproblems.Trytoexplainwhatproblemswillmultipleinheritancecauseandhowtoavoidthem.

  4.WhatoperatorscannotbeoverloadedinC++?Whatrestrictionappliestooverloadingthefollowingoperators?

  =,(),[],and->.

1回答
2020-08-06 15:34
我要回答
请先登录
傅建奇

  1.Inheritanceallowsonedatatypetoacquirepropertiesofotherdatatypes.the2ndcondition(BisakindofA)2.(1)Whenaclassishavingserveralbaseclassesandthecallofmemberfunctionisam...

2020-08-06 15:38:06

最新问答

推荐文章

猜你喜欢

附近的人在看

推荐阅读

拓展阅读

  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  •