1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rzqust [24]
4 years ago
12

If the derived class classD overrides a public member function functionName of the base class classB, then to specify a call to

that public member function of the base class, you use the statement __________.a. classD::functionName();b. classB::functionName();c. classD.functionName();d. classB.functionName();
Computers and Technology
1 answer:
olga nikolaevna [1]4 years ago
7 0

Answer:

Option (d)

Explanation:

More specifically class B's object name will be there which would be

obj.funcname();

where obj is object of class B. If we need to call overridden method of class D then object of class D should be made. For example :

#include <iostream>

using namespace std;

class B

{

   public:

   void print()

   {

       cout<<"class B";

   }

};

class D : public B

{

   public:

   void print()

   {

       cout<<"class D";

   }

};

int main()

{

   B obj;

   obj.print();  //option d

   return 0;

}

Options a and b are wrong as it is no way of calling a class's method and option c would call the overridden method of derived class.

You might be interested in
Each of the flowchart segments in Figure 3-24 is unstructured. Redraw each segment so that it does the same processes under the
SSSSS [86.1K]

The segments of the flowcharts have been recreated such that  it does the same processes under the same conditions, but is structured. Their respective pseudo codes have also been created. See the attached pdf.

<h3>What is a pseudo code?</h3>

A pseudo code is a notation used in program design that looks like a simplified computer language.

<h3>Why is it important for flow chart to be structured?</h3>

This preference derives from the fact that such flowcharts are easier to understand and produce less mistakes in human perception.

The organized flowchart primarily aids the mission in the development of new algorithms by encapsulating a variety of data points within an interconnected depiction.

Learn more about flowcharts at;
brainly.com/question/6532130
#SPJ1

5 0
2 years ago
Word's Help feature is useful if you need to quickly learn how to print a document
KATRIN_1 [288]
If your on a website Ctrl+P and than chose your printer and print. or if downloaded it open it and find the print on the top left
7 0
4 years ago
Do you think should give credit to people who invented viral dances?
guajiro [1.7K]

Answer:

michal jackson i think who credit to people invented viral dances.

3 0
3 years ago
Read 2 more answers
The packet storm web site includes a large collection of packaged shellcode, including code that can:_____.
elena55 [62]

The packet storm web site includes a large collection of packaged shellcode, including code that can create a reverse shell that connects back to the hacker, flush firewall rules that currently block other attacks, and set up a listening service to launch a remote shell when connected to.

6 0
2 years ago
To the nearest​ millimeter, a cell phone is 7878 mm long and 3434 mm wide. What is the ratio of the width to the​ length?
Darina [25.2K]

Answer:

1:2

Explanation:

Width : Length

3434 : 7878

= 1 : 2.294

= 1 : 2 (to the nearest mm)

8 0
3 years ago
Other questions:
  • 8. Which of the following must a designer be aware of when planning the design of a document?
    10·1 answer
  • An argument is different from a parameter in that an argument
    11·2 answers
  • Use BlueJ to write a program that reads a sequence of data for several car objects from an input file. It stores the data in an
    5·1 answer
  • Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90; th
    8·2 answers
  • Carlos is using the software development life cycle to create a new app. He has finished coding and is ready to see the output i
    12·2 answers
  • What online server provides you space to store and launch your website?
    11·1 answer
  • Select three advantages of cloud computing.
    10·1 answer
  • How do i stop my computer from automatically connecting to a wireless network
    5·1 answer
  • What does the x mean in .docx
    6·1 answer
  • Bruce realizes he's getting a cramp in his neck after texting with his buddy for several minutes. he puts the phone down and tak
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!