subject

What is printed by the following program provided all necessary standard header files are included? explain each line of the output by stating which member function generates the result and why to justify your answer.#include iostream> using namespace std; class a { public: virtual void f1() cout< < ("fl in a/n") voidf2 () { cout < < "f2 in a/n"; } }class b: public a {public: void f1() cout < < "fl in b/n"; void f2() cout < < "f2 in b/n }void g(a & x){ x. f1(); x. f2(); int main(){a; ab: bg(a); g(b); a. f1(); a. f2(); b. f1(); b. f2(); }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
You know the right answer?
What is printed by the following program provided all necessary standard header files are included?...
Questions
question
Mathematics, 27.04.2021 18:50
question
Arts, 27.04.2021 18:50
question
Mathematics, 27.04.2021 18:50
question
English, 27.04.2021 18:50
Questions on the website: 13722363