18. A C++ developer has overridden a function named func() from the base class named Base in a derived class named Derived. Which of the following statements can the developer use to call the base...


Please answer the belowtwo
questions, for better clarity check with below images...


18. A C++ developer has overridden a function named func() from the base class named Base<br>in a derived class named Derived. Which of the following statements can the developer use to<br>call the base class func() through a Derived class instance named objDerived as shown in the<br>example below?<br>class Base {<br>public:<br>void func() {}<br>};<br>class Derived : public Base {<br>public:<br>void func() {}<br>};<br>/I.<br>void example( ) {<br>Derived objDerived;<br>//statement goes here<br>}<br>public:<br>void func() { }<br>};<br>/.<br>void example( ) {<br>Derived objDerived;<br>//statement goes here<br>A)Derived:func();<br>B)objDerived:func();<br>C)objDerived.base:func();<br>D)Base:func();<br>E)Base: Derived:func( );<br>

Extracted text: 18. A C++ developer has overridden a function named func() from the base class named Base in a derived class named Derived. Which of the following statements can the developer use to call the base class func() through a Derived class instance named objDerived as shown in the example below? class Base { public: void func() {} }; class Derived : public Base { public: void func() {} }; /I. void example( ) { Derived objDerived; //statement goes here } public: void func() { } }; /. void example( ) { Derived objDerived; //statement goes here A)Derived:func(); B)objDerived:func(); C)objDerived.base:func(); D)Base:func(); E)Base: Derived:func( );
17. Which of the following represents the number of times that the for loop in the ANSI C<br>function below will come<br>int foo (void)<br>{<br>int i;<br>for (i = -10; i< 10; ++i)<br>process();<br>}<br>10<br>20<br>19<br>• 2<br>100<br>

Extracted text: 17. Which of the following represents the number of times that the for loop in the ANSI C function below will come int foo (void) { int i; for (i = -10; i< 10;="" ++i)="" process();="" }="" 10="" 20="" 19="" •="" 2="">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here