Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp Difficulty: Medium

A class member declared protected becomes member of subclass of which type?

Select the correct option to test your answer:

More Computer Questions

What does the super keyword do in a Ruby class? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str ("steve jobs is legend"); string::iterator it; str.erase (str.begin()+ 5, str.end()-7); cout << str << endl; return 0; } What is the syntax for the 'for' loop in C++? outline-offset is not supported by . . . . . . . . Which of the following C++ code will give error on compilation? ================code 1================= #include <iostream> using namespace std; int main(int argc, char const *argv[]) { cout<<"Hello World"; return 0; } ======================================== ================code 2================= #include <iostream> int main(int argc, char const *argv[]) { std::cout<<"Hello World"; return 0; } ========================================