consider the following code snippet: class A{ public: }; class B: private A{ B0: }; main0{ B *b = new B0; a. the constructor of the class B will be executed then the constructor of class A O b. None...


consider the following code snippet:<br>class A{<br>public:<br>};<br>class B: private A{<br>B0:<br>};<br>main0{<br>B *b = new B0;<br>a. the constructor of the class B will be executed then the constructor of class A<br>O b. None of the constructors will be executed<br>O c. the constructor of the class A will be executed then the constructor of class B<br>O d. All other answers are wrong<br>

Extracted text: consider the following code snippet: class A{ public: }; class B: private A{ B0: }; main0{ B *b = new B0; a. the constructor of the class B will be executed then the constructor of class A O b. None of the constructors will be executed O c. the constructor of the class A will be executed then the constructor of class B O d. All other answers are wrong

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here