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, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
The study of how to design software, solve problems such as computer security threats, or come up with better ways of handling data storage
Answers: 1
You know the right answer?
What is printed by the following program provided all necessary standard header files are included?...
Questions
question
Mathematics, 27.05.2021 19:30
question
Mathematics, 27.05.2021 19:30
question
Mathematics, 27.05.2021 19:30
question
Mathematics, 27.05.2021 19:30
question
Mathematics, 27.05.2021 19:30
question
History, 27.05.2021 19:30
question
Biology, 27.05.2021 19:30
question
Business, 27.05.2021 19:30
Questions on the website: 13722362